• 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
Name
Last commit
Last update
benches Loading commit data...
librocksdb_sys Loading commit data...
src Loading commit data...
tests Loading commit data...
travis-build Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
Cargo.toml Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
rustfmt.toml Loading commit data...