minor CRatio improvement

This commit is contained in:
Yann Collet 2015-11-06 17:13:46 +01:00
parent eb283710dd
commit 47cfa9a985

View File

@ -707,6 +707,8 @@ size_t ZSTD_HC_compressBlock_lazy_generic(ZSTD_HC_CCtx* ctx,
}
/* store sequence */
if (offset)
while ((start>anchor) && (start-offset>ctx->base) && (start[-1] == start[-1-offset])) { start--; matchLength++; } /* catch up */
{
size_t litLength = start - anchor;
if (offset) offset_1 = offset;