• K
    A heuristic way to check if a memtable is full · 11da8bc5
    Kai Liu 提交于
    Summary:
    This is is based on https://reviews.facebook.net/D15027. It's not finished but I would like to give a prototype to avoid arena over-allocation while making better use of the already allocated memory blocks.
    
    Instead of check approximate memtable size, we will take a deeper look at the arena, which incorporate essential idea that @sdong suggests: flush when arena has allocated its last and the last is "almost full"
    
    Test Plan: N/A
    
    Reviewers: haobo, sdong
    
    Reviewed By: sdong
    
    CC: leveldb, sdong
    
    Differential Revision: https://reviews.facebook.net/D15051
    11da8bc5
memtable.h 7.7 KB