]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change Cut-Off to 8 KB
authorW. Felix Handte <w@felixhandte.com>
Thu, 3 May 2018 02:28:29 +0000 (22:28 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 23 May 2018 21:53:03 +0000 (17:53 -0400)
lib/compress/zstd_compress.c

index 6bbd09c0a26fefc1a8633fe0d5c7edc684ae08a0..b877a7fb206db859e6a2f5f49b7d034b08663a77 100644 (file)
@@ -1208,7 +1208,7 @@ static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
      * context, or referencing the dictionary context from the working context
      * in-place. We decide here which strategy to use. */
     /* TODO: pick reasonable cut-off size, handle ZSTD_CONTENTSIZE_UNKNOWN */
-    int attachDict = pledgedSrcSize < 64 KB
+    int attachDict = pledgedSrcSize <= 8 KB
                   && cdict->cParams.strategy == ZSTD_fast
                   && ZSTD_equivalentCParams(cctx->appliedParams.cParams,
                                             cdict->cParams);