From: senhuang42 Date: Thu, 15 Oct 2020 13:56:05 +0000 (-0400) Subject: Change cycleLog adjustment to +3 from +4 X-Git-Tag: v1.4.7~51^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2355%2Fhead;p=thirdparty%2Fzstd.git Change cycleLog adjustment to +3 from +4 --- diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index 7f67b3124..0d384c612 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -1193,7 +1193,7 @@ static unsigned ZSTDMT_computeTargetJobLog(const ZSTD_CCtx_params* params) /* In Long Range Mode, the windowLog is typically oversized. * In which case, it's preferable to determine the jobSize * based on cycleLog instead. */ - jobLog = MAX(21, ZSTD_cycleLog(params->cParams.chainLog, params->cParams.strategy) + 4); + jobLog = MAX(21, ZSTD_cycleLog(params->cParams.chainLog, params->cParams.strategy) + 3); } else { jobLog = MAX(20, params->cParams.windowLog + 2); }