]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
minor rebalancing of level 13
authorYann Collet <yann.collet.73@gmail.com>
Wed, 1 Sep 2021 20:02:07 +0000 (13:02 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 1 Sep 2021 20:05:10 +0000 (13:05 -0700)
This new setup is slighly better on `silesia.tar` :
Ratio : 3.649 -> 3.655
Speed : 11.9 MB/s -> 12.2 MB/s
At the cost of more memory : 24 MB -> 32 MB
The new memory budget is a reasonable interpolation between neighboring levels 12 and 14:
level 12 : 24 MB
level 13 : 32 MB (increased from 24 MB)
level 14 : 48 MB
Window size remains unaffected (4 MB)

lib/compress/zstd_compress.c

index 2f02d512cf299d2853b7585ddc80bf8d17ae4543..e68f7352ac7f173c2ae685f0dc99d93ae629b7cc 100644 (file)
@@ -6207,7 +6207,7 @@ static const ZSTD_compressionParameters ZSTD_defaultCParameters[4][ZSTD_MAX_CLEV
     { 22, 21, 22,  4,  5, 16, ZSTD_lazy2   },  /* level 10 */
     { 22, 21, 22,  5,  5, 16, ZSTD_lazy2   },  /* level 11 */
     { 22, 21, 22,  6,  5, 32, ZSTD_lazy2   },  /* level 12 */
-    { 22, 21, 22,  5,  5, 32, ZSTD_btlazy2 },  /* level 13 */
+    { 22, 22, 22,  4,  5, 32, ZSTD_btlazy2 },  /* level 13 */
     { 22, 22, 23,  5,  5, 32, ZSTD_btlazy2 },  /* level 14 */
     { 22, 23, 23,  6,  5, 32, ZSTD_btlazy2 },  /* level 15 */
     { 22, 22, 22,  5,  5, 48, ZSTD_btopt   },  /* level 16 */