mirror of
https://github.com/facebook/zstd.git
synced 2025-12-01 23:57:51 +03:00
minor CRatio improvement
This commit is contained in:
@@ -707,6 +707,8 @@ size_t ZSTD_HC_compressBlock_lazy_generic(ZSTD_HC_CCtx* ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* store sequence */
|
/* 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;
|
size_t litLength = start - anchor;
|
||||||
if (offset) offset_1 = offset;
|
if (offset) offset_1 = offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user