• S
    [Only for Performance Branch] A Hacky patch to lazily generate memtable key... · 58e1956d
    Siying Dong 提交于
    [Only for Performance Branch] A Hacky patch to lazily generate memtable key for prefix-hashed memtables.
    
    Summary:
    For prefix mem tables, encoding mem table key may be unnecessary if the prefix doesn't have any key. This patch is a little bit hacky but I want to try out the performance gain of removing this lazy initialization.
    
    In longer term, we might want to revisit the way we abstract mem tables implementations.
    
    Test Plan: make all check
    
    Reviewers: haobo, igor, kailiu
    
    Reviewed By: igor
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D14265
    58e1956d
memtable.h 6.2 KB