]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
forgot the chainlog is effectively a "fake" value with rowHash
authorYann Collet <cyan@fb.com>
Thu, 16 Dec 2021 19:37:40 +0000 (11:37 -0800)
committerYann Collet <cyan@fb.com>
Thu, 16 Dec 2021 19:37:40 +0000 (11:37 -0800)
the only value which makes sense is `hashlog-1`
as it mimics the real memory usage.

lib/compress/clevels.h

index d509d07a3067f9819c9e11fc8977e5dc7644313f..c2ceb6384ec93ad3e678bfb7305421305468961a 100644 (file)
@@ -32,10 +32,10 @@ static const ZSTD_compressionParameters ZSTD_defaultCParameters[4][ZSTD_MAX_CLEV
     { 21, 16, 17,  1,  5,  0, ZSTD_dfast   },  /* level  3 */
     { 21, 18, 18,  1,  5,  0, ZSTD_dfast   },  /* level  4 */
     { 21, 18, 19,  3,  5,  2, ZSTD_greedy  },  /* level  5 */
-    { 21, 19, 19,  3,  5,  4, ZSTD_lazy    },  /* level  6 */
+    { 21, 18, 19,  3,  5,  4, ZSTD_lazy    },  /* level  6 */
     { 21, 19, 20,  4,  5,  8, ZSTD_lazy    },  /* level  7 */
-    { 21, 20, 20,  4,  5, 16, ZSTD_lazy2   },  /* level  8 */
-    { 22, 21, 21,  4,  5, 16, ZSTD_lazy2   },  /* level  9 */
+    { 21, 19, 20,  4,  5, 16, ZSTD_lazy2   },  /* level  8 */
+    { 22, 20, 21,  4,  5, 16, ZSTD_lazy2   },  /* level  9 */
     { 22, 21, 22,  5,  5, 16, ZSTD_lazy2   },  /* level 10 */
     { 22, 21, 22,  6,  5, 16, ZSTD_lazy2   },  /* level 11 */
     { 22, 22, 23,  6,  5, 32, ZSTD_lazy2   },  /* level 12 */