21696ba502
Summary: Replace dynamic_cast<> so that users can choose to build with RTTI off, so that they can save several bytes per object, and get tiny more memory available. Some nontrivial changes: 1. Add Comparator::GetRootComparator() to get around the internal comparator hack 2. Add the two experiemental functions to DB 3. Add TableFactory::GetOptionString() to avoid unnecessary casting to get the option string 4. Since 3 is done, move the parsing option functions for table factory to table factory files too, to be symmetric. Closes https://github.com/facebook/rocksdb/pull/2645 Differential Revision: D5502723 Pulled By: siying fbshipit-source-id: fd13cec5601cf68a554d87bfcf056f2ffa5fbf7c |
||
---|---|---|
.. | ||
.gitignore | ||
c_simple_example.c | ||
column_families_example.cc | ||
compact_files_example.cc | ||
compaction_filter_example.cc | ||
Makefile | ||
optimistic_transaction_example.cc | ||
options_file_example.cc | ||
README.md | ||
rocksdb_option_file_example.ini | ||
simple_example.cc | ||
transaction_example.cc |
- Compile RocksDB first by executing
make static_lib
in parent dir - Compile all examples:
cd examples/; make all