rocksdb/table
Siying Dong 9edda37027 Universal Compaction to Have a Size Percentage Threshold To Decide Whether to Compress
Summary:
This patch adds a option for universal compaction to allow us to only compress output files if the files compacted previously did not yet reach a specified ratio, to save CPU costs in some cases.

Compression is always skipped for flushing. This is because the size information is not easy to evaluate for flushing case. We can improve it later.

Test Plan:
add test
DBTest.UniversalCompactionCompressRatio1 and DBTest.UniversalCompactionCompressRatio12

Reviewers: dhruba, haobo

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D13467
2013-10-17 13:33:39 -07:00
..
block_builder.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
block_builder.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
block_test.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
block.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
block.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
filter_block_test.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
filter_block.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
filter_block.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
format.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
format.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
iter_heap.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
iterator_wrapper.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
iterator.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
merger.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
merger.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
table_builder.cc Universal Compaction to Have a Size Percentage Threshold To Decide Whether to Compress 2013-10-17 13:33:39 -07:00
table_test.cc Add bloom filter to predefined table stats 2013-10-17 11:43:06 -07:00
table.cc Add bloom filter to predefined table stats 2013-10-17 11:43:06 -07:00
table.h Add bloom filter to predefined table stats 2013-10-17 11:43:06 -07:00
two_level_iterator.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
two_level_iterator.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00