Revision 3f622152102075c3973697da8c562c423b45cd81 authored by Andrew Kryczka on 19 November 2016, 00:54:09 UTC, committed by Facebook Github Bot on 19 November 2016, 01:09:11 UTC
Summary: Since a RangeDelAggregator is created for each read request, these heap-allocating member variables were consuming significant CPU (~3% total) which slowed down request throughput. The map and pinning manager are only necessary when range deletions exist, so we can defer their initialization until the first range deletion is encountered. Currently lazy initialization is done for reads only since reads pass us a single snapshot, which is easier to store on the stack for later insertion into the map than the vector passed to us by flush or compaction. Note the Arena member variable is still expensive, I will figure out what to do with it in a subsequent diff. It cannot be lazily initialized because we currently use this arena even to allocate empty iterators, which is necessary even when no range deletions exist. Closes https://github.com/facebook/rocksdb/pull/1539 Differential Revision: D4203488 Pulled By: ajkr fbshipit-source-id: 3b36279
1 parent 41e77b8
File | Mode | Size |
---|---|---|
backupable | ||
blob_db | ||
checkpoint | ||
compaction_filters | ||
convenience | ||
date_tiered | ||
document | ||
flashcache | ||
geodb | ||
leveldb_options | ||
lua | ||
memory | ||
merge_operators | ||
option_change_migration | ||
options | ||
persistent_cache | ||
redis | ||
simulator_cache | ||
spatialdb | ||
table_properties_collectors | ||
transactions | ||
ttl | ||
write_batch_with_index | ||
col_buf_decoder.cc | -rw-r--r-- | 6.6 KB |
col_buf_decoder.h | -rw-r--r-- | 3.6 KB |
col_buf_encoder.cc | -rw-r--r-- | 5.9 KB |
col_buf_encoder.h | -rw-r--r-- | 7.9 KB |
column_aware_encoding_exp.cc | -rw-r--r-- | 6.2 KB |
column_aware_encoding_test.cc | -rw-r--r-- | 8.5 KB |
column_aware_encoding_util.cc | -rw-r--r-- | 18.0 KB |
column_aware_encoding_util.h | -rw-r--r-- | 2.8 KB |
env_librados.cc | -rw-r--r-- | 36.4 KB |
env_librados.md | -rw-r--r-- | 4.6 KB |
env_librados_test.cc | -rw-r--r-- | 34.4 KB |
env_mirror.cc | -rw-r--r-- | 7.8 KB |
env_mirror_test.cc | -rw-r--r-- | 7.0 KB |
env_registry.cc | -rw-r--r-- | 1.2 KB |
env_registry_test.cc | -rw-r--r-- | 2.0 KB |
merge_operators.h | -rw-r--r-- | 1.7 KB |
util_merge_operators_test.cc | -rw-r--r-- | 3.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...