Merge pull request #431 from terrelln/perf-regr

Fix ZSTD_execSequence() performance regression
This commit is contained in:
Yann Collet 2016-10-27 20:45:52 -07:00 committed by GitHub
commit 5f1cb45cff

View File

@ -887,7 +887,8 @@ size_t ZSTD_execSequence(BYTE* op,
sequence.matchLength -= length1;
match = base;
if (op > oend_w) {
while (op < oMatchEnd) *op++ = *match++;
U32 i;
for (i = 0; i < sequence.matchLength; ++i) op[i] = match[i];
return sequenceLength;
}
} }