diff options
author | Yann Collet <cyan@fb.com> | 2017-03-24 18:29:35 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-03-24 18:29:35 (GMT) |
commit | 60b6d2907ffe1b07429781df9323d7636d62a1bd (patch) | |
tree | 748719e7ece3205020b7893e019bb3a7d5d3b3ad | |
parent | 8f8fc52fcfdb91186b7f19646699505232e25770 (diff) | |
download | lz4-60b6d2907ffe1b07429781df9323d7636d62a1bd.zip lz4-60b6d2907ffe1b07429781df9323d7636d62a1bd.tar.gz lz4-60b6d2907ffe1b07429781df9323d7636d62a1bd.tar.bz2 |
improved level 10 speed for degenerated cases
-rw-r--r-- | lib/lz4hc.c | 2 |
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); |