long offset mode : new default threshold for 32-bit

This commit is contained in:
Yann Collet 2018-03-05 16:41:08 -08:00
parent 7bd7a3ad43
commit 9a91afe6ef

View File

@ -1333,7 +1333,7 @@ static size_t ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx,
if (dctx->fParams.windowSize > (1<<24)) { if (dctx->fParams.windowSize > (1<<24)) {
U32 const shareLongOffsets = ZSTD_getLongOffsetsShare(dctx->OFTptr); U32 const shareLongOffsets = ZSTD_getLongOffsetsShare(dctx->OFTptr);
U32 const minShare = MEM_64bits() ? 7 : 13; U32 const minShare = MEM_64bits() ? 7 : 20;
if (shareLongOffsets >= minShare) if (shareLongOffsets >= minShare)
return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize, nbSeq, isLongOffset); return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize, nbSeq, isLongOffset);
} }