]> git.ipfire.org Git - pakfire.git/commitdiff
compress: Drastically increase the Zstandard compression level
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jan 2025 17:10:21 +0000 (17:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jan 2025 17:10:21 +0000 (17:10 +0000)
All files that we generate are being transferred or stored for a long
time. So it should be wise to always spend the extra CPU cycles.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/compress.c

index 41c35a25853a5f08c46c3412c74aeaffdbf9e5d2..287b2ba1017e6aea551dba5d2572e158bc1c6789 100644 (file)
@@ -47,7 +47,7 @@
 #define XZ_COMPRESSION_LEVEL   6
 
 // Settings for ZSTD
-#define ZSTD_COMPRESSION_LEVEL 7
+#define ZSTD_COMPRESSION_LEVEL 15
 
 const struct compressor {
        char magic[MAX_MAGIC_LENGTH];