Modify codepath to use opt parser exclusively if the compression level is high enough

This commit is contained in:
senhuang42
2020-10-07 13:56:24 -04:00
parent e1ae398ad5
commit 35d9f488f5
+7
View File
@@ -576,6 +576,13 @@ size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore,
/* Input positions */
BYTE const* ip = istart;
if (cParams->strategy >= ZSTD_btopt) {
size_t lastLLSize;
ms->ldmSeqStore = *rawSeqStore; /* copy current seqStore */
lastLLSize = blockCompressor(ms, seqStore, rep, src, srcSize);
return lastLLSize;
}
DEBUGLOG(5, "ZSTD_ldm_blockCompress: srcSize=%zu", srcSize);
assert(rawSeqStore->pos <= rawSeqStore->size);
assert(rawSeqStore->size <= rawSeqStore->capacity);