mirror of
https://github.com/facebook/zstd.git
synced 2024-12-18 21:10:34 +08:00
Change Cut-Off to 8 KB
This commit is contained in:
parent
c31ee3c7f8
commit
66bc1ca641
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user