From 48fff678ea18663ba763fa3b57042ccba2d86b0a Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 15 Nov 2022 15:49:37 +0100 Subject: [PATCH] Update file data compression level to 3 (from 5) 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. --- src/constants.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.hpp b/src/constants.hpp index b6f843f..87ca47c 100644 --- a/src/constants.hpp +++ b/src/constants.hpp @@ -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;