]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change cycleLog adjustment to +3 from +4 2355/head
authorsenhuang42 <senhuang96@fb.com>
Thu, 15 Oct 2020 13:56:05 +0000 (09:56 -0400)
committersenhuang42 <senhuang96@fb.com>
Thu, 15 Oct 2020 13:56:05 +0000 (09:56 -0400)
lib/compress/zstdmt_compress.c

index 7f67b3124071d5f28e1a206632083357d731b38e..0d384c612a5e57376961ba5fbe24443368018c33 100644 (file)
@@ -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);
     }