• K
    Remove the unnecessary use of shared_ptr · eae1804f
    kailiu 提交于
    Summary:
    shared_ptr is slower than unique_ptr (which literally comes with no performance cost compare with raw pointers).
    In memtable and memtable rep, we use shared_ptr when we'd actually should use unique_ptr.
    
    According to igor's previous work, we are likely to make quite some performance gain from this diff.
    
    Test Plan: make check
    
    Reviewers: dhruba, igor, sdong, haobo
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D15213
    eae1804f
version_set.cc 99.2 KB