Use cycleLog instead of chainLog to determine LDM jobLog
This commit is contained in:
@@ -1184,8 +1184,8 @@ static unsigned ZSTDMT_computeTargetJobLog(const ZSTD_CCtx_params* params)
|
|||||||
if (params->ldmParams.enableLdm) {
|
if (params->ldmParams.enableLdm) {
|
||||||
/* In Long Range Mode, the windowLog is typically oversized.
|
/* In Long Range Mode, the windowLog is typically oversized.
|
||||||
* In which case, it's preferable to determine the jobSize
|
* In which case, it's preferable to determine the jobSize
|
||||||
* based on chainLog instead. */
|
* based on cycleLog instead. */
|
||||||
jobLog = MAX(21, params->cParams.chainLog + 4);
|
jobLog = MAX(21, ZSTD_cycleLog(params->cParams.chainLog, params->cParams.strategy) + 4);
|
||||||
} else {
|
} else {
|
||||||
jobLog = MAX(20, params->cParams.windowLog + 2);
|
jobLog = MAX(20, params->cParams.windowLog + 2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user