• D
    Implement a compressed block cache. · b4ad5e89
    Dhruba Borthakur 提交于
    Summary:
    Rocksdb can now support a uncompressed block cache, or a compressed
    block cache or both. Lookups first look for a block in the
    uncompressed cache, if it is not found only then it is looked up
    in the compressed cache. If it is found in the compressed cache,
    then it is uncompressed and inserted into the uncompressed cache.
    
    It is possible that the same block resides in the compressed cache
    as well as the uncompressed cache at the same time. Both caches
    have their own individual LRU policy.
    
    Test Plan: Unit test case attached.
    
    Reviewers: kailiu, sdong, haobo, leveldb
    
    Reviewed By: haobo
    
    CC: xjin, haobo
    
    Differential Revision: https://reviews.facebook.net/D12675
    b4ad5e89
db_impl.cc 116.9 KB