https://github.com/facebook/rocksdb
Revision 2d75cd40d3e3b9ff05b867f355341f85bf83db2a authored by Siying Dong on 27 January 2017, 14:35:41 UTC, committed by Facebook Github Bot on 27 January 2017, 14:39:12 UTC
Summary: If the users use the NewLRUCache() without passing in the number of shard bits, instead of using hard-coded 6, we'll determine it based on capacity. Closes https://github.com/facebook/rocksdb/pull/1584 Differential Revision: D4242517 Pulled By: siying fbshipit-source-id: 86b0f18
1 parent f25f1ec
Tip revision: 2d75cd40d3e3b9ff05b867f355341f85bf83db2a authored by Siying Dong on 27 January 2017, 14:35:41 UTC
NewLRUCache() to pick number of shard bits based on capacity if not given
NewLRUCache() to pick number of shard bits based on capacity if not given
Tip revision: 2d75cd4
File | Mode | Size |
---|---|---|
arcanist_util | ||
build_tools | ||
cmake | ||
coverage | ||
db | ||
docs | ||
examples | ||
hdfs | ||
include | ||
java | ||
memtable | ||
port | ||
table | ||
third-party | ||
tools | ||
util | ||
utilities | ||
.arcconfig | -rw-r--r-- | 566 bytes |
.clang-format | -rw-r--r-- | 138 bytes |
.gitignore | -rw-r--r-- | 700 bytes |
.travis.yml | -rw-r--r-- | 1.7 KB |
AUTHORS | -rw-r--r-- | 247 bytes |
CMakeLists.txt | -rw-r--r-- | 25.6 KB |
CONTRIBUTING.md | -rw-r--r-- | 733 bytes |
DEFAULT_OPTIONS_HISTORY.md | -rw-r--r-- | 1.1 KB |
DUMP_FORMAT.md | -rw-r--r-- | 763 bytes |
HISTORY.md | -rw-r--r-- | 39.6 KB |
INSTALL.md | -rw-r--r-- | 3.9 KB |
LANGUAGE-BINDINGS.md | -rw-r--r-- | 646 bytes |
LICENSE | -rw-r--r-- | 1.6 KB |
Makefile | -rw-r--r-- | 50.4 KB |
PATENTS | -rw-r--r-- | 1.9 KB |
README.md | -rw-r--r-- | 1.4 KB |
ROCKSDB_LITE.md | -rw-r--r-- | 1.0 KB |
USERS.md | -rw-r--r-- | 4.9 KB |
Vagrantfile | -rw-r--r-- | 877 bytes |
WINDOWS_PORT.md | -rw-r--r-- | 12.5 KB |
appveyor.yml | -rw-r--r-- | 511 bytes |
src.mk | -rw-r--r-- | 24.0 KB |
thirdparty.inc | -rw-r--r-- | 7.8 KB |
Computing file changes ...