From: Yann Collet Date: Wed, 1 Sep 2021 20:02:07 +0000 (-0700) Subject: minor rebalancing of level 13 X-Git-Tag: v1.5.1~1^2~119^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70d89e5a128c73f81d362332f4b6b1b2b8764f15;p=thirdparty%2Fzstd.git minor rebalancing of level 13 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) --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 2f02d512c..e68f7352a 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -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 */