]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Default to zstd compression level 1
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 15 May 2020 19:10:45 +0000 (21:10 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 20 May 2020 18:07:12 +0000 (20:07 +0200)
After some experiments my evaluation is that the increased compression
ratio of level 1 is worth the very slight decrease in compression speed.

doc/MANUAL.adoc
src/ZstdCompressor.cpp

index 3094a945c9587f7ac1d210a2a6c886f3592273ab..b2ac1d4e9e0614323a434effcf4f60adbc840117 100644 (file)
@@ -382,7 +382,7 @@ Semantics of *compression_level*:
     the *zstd* command line tool.
 *0* (default)::
     The value *0* means that ccache will choose a suitable level, currently
-    *-1*.
+    *1*.
 --
 
 [[config_cpp_extension]] *cpp_extension* (*CCACHE_EXTENSION*)::
index beaa5896dc9af4dc39ea88ffe11d3189874e2589..37ea7e3f23d91ebf857d0badf2deb5fb11db32c1 100644 (file)
@@ -21,7 +21,7 @@
 #include "exceptions.hpp"
 #include "logging.hpp"
 
-const uint8_t k_default_zstd_compression_level = -1;
+const uint8_t k_default_zstd_compression_level = 1;
 
 ZstdCompressor::ZstdCompressor(FILE* stream, int8_t compression_level)
   : m_stream(stream), m_zstd_stream(ZSTD_createCStream())