From: W. Felix Handte Date: Thu, 3 May 2018 02:28:29 +0000 (-0400) Subject: Change Cut-Off to 8 KB X-Git-Tag: v1.3.5~3^2~44^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66bc1ca64142a63f846035c4f5539d400113e56b;p=thirdparty%2Fzstd.git Change Cut-Off to 8 KB --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 6bbd09c0a..b877a7fb2 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -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);