summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-03-24 18:29:35 (GMT)
committerYann Collet <cyan@fb.com>2017-03-24 18:29:35 (GMT)
commit60b6d2907ffe1b07429781df9323d7636d62a1bd (patch)
tree748719e7ece3205020b7893e019bb3a7d5d3b3ad
parent8f8fc52fcfdb91186b7f19646699505232e25770 (diff)
downloadlz4-60b6d2907ffe1b07429781df9323d7636d62a1bd.zip
lz4-60b6d2907ffe1b07429781df9323d7636d62a1bd.tar.gz
lz4-60b6d2907ffe1b07429781df9323d7636d62a1bd.tar.bz2
improved level 10 speed for degenerated cases
-rw-r--r--lib/lz4hc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 03a0301..ac15d20 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -550,7 +550,7 @@ static int LZ4HC_compress_generic (
if (limit == limitedDestSize) cLevel = 10;
switch (cLevel) {
case 10:
- return LZ4HC_compress_hashChain(ctx, src, dst, srcSizePtr, dstCapacity, 1 << (16-1), limit);
+ return LZ4HC_compress_hashChain(ctx, src, dst, srcSizePtr, dstCapacity, 1 << (15-1), limit);
case 11:
ctx->searchNum = LZ4HC_getSearchNum(cLevel);
return LZ4HC_compress_optimal(ctx, src, dst, *srcSizePtr, dstCapacity, limit, 128, 0);