[For Performance Branch] Bloom filter in PlainTableIterator::Seek() - Update 1

Summary:
Address @haobo's comments in D14277

Test Plan: ./indexed_table_db_test

Reviewers: haobo

CC:

Task ID: #

Blame Rev:
This commit is contained in:
Siying Dong
2013-11-21 23:33:45 -08:00
parent 718488abc5
commit dfa1460d88
3 changed files with 10 additions and 8 deletions

View File

@@ -242,7 +242,9 @@ int main(int argc, char** argv) {
if (FLAGS_plain_table) {
options.allow_mmap_reads = true;
env_options.use_mmap_reads = true;
tf = new rocksdb::PlainTableFactory(16, FLAGS_prefix_len, FLAGS_prefix_len);
tf = new rocksdb::PlainTableFactory(16, FLAGS_prefix_len,
(FLAGS_prefix_len == 16) ? 0 : 8,
0.75);
} else {
tf = new rocksdb::BlockBasedTableFactory();
}