Skip to content

Commit

Permalink
Update file data compression level to 3 (from 5)
Browse files Browse the repository at this point in the history
This results in ~3% larger files but the build throughput is ~35% higher.

The original compression level has been 9; it was changed from 9 to 5 in
2017, for 1% regression in size vs 50% gain in throughput. This change
represents a more modest gain in throughput and a larger regression in size,
but the query performance is generally not impacted here either.

This should provide a little bit of a better balance on modern systems where
it takes a lot of cores for compression to beat the disk read throughput.
  • Loading branch information
zeux committed Nov 15, 2022
1 parent c622811 commit 48fff67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const size_t kBufferedOutputFlushThreshold = 32 Kb;
const int kFileListCompressionLevel = 1;

// File data compression level, 0-9
const int kFileDataCompressionLevel = 5;
const int kFileDataCompressionLevel = 3;

// Wait for several seconds before writing changes to amortize writes when many changes are done at once
const int kWatchWriteDeadline = 1;
Expand Down

0 comments on commit 48fff67

Please sign in to comment.