• yiwu-arbug's avatar
    Add jemalloc feature (#319) · d67f38e2
    yiwu-arbug authored
    Adding feature "jemalloc". When enabled, rocksdb "WITH_JEMALLOC" will be enabled. This does NOT affect whether jemalloc is use or not. Mostly it only affect how rocksdb calculate block cache size: if "WITH_JEMALLOC" is on, it will use `malloc_usable_size()` (size allocated by jemalloc) to calculate size of each entry of block cache, instead of the requested size of the allocation.
    
    Tested by running `cargo build --features jemalloc -vv` and check rocksdb compile flags from the output.
    Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
    d67f38e2
Cargo.toml 929 Bytes