[zstd] Reuse the ZSTD_CCtx more often with small data.

This commit is contained in:
Nick Terrell
2018-08-23 17:48:06 -07:00
committed by Nick Terrell
parent 9d6ed9def3
commit 924944e471
3 changed files with 28 additions and 13 deletions
+1
View File
@@ -314,6 +314,7 @@ MEM_STATIC void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const v
pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offsetCode);
}
#endif
assert((size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart) < seqStorePtr->maxNbSeq);
/* copy Literals */
assert(seqStorePtr->lit + litLength <= seqStorePtr->litStart + 128 KB);
ZSTD_wildcopy(seqStorePtr->lit, literals, litLength);