From 7b9a755ac9a10d211c306f4ee26d7da1a9a07c96 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Thu, 20 Aug 2020 17:17:10 -0400 Subject: [PATCH] Remove Chain Limit on Hash Cache Entries; Slightly Improve Compression Entries in the hashTable chain cache aren't subject to the same aliasing that the circular chain table is subject to. As such, we don't need to stop when we cross the chain limit. We can delve deeper. :) --- lib/compress/zstd_lazy.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index d39398401..684e7e56e 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -611,10 +611,6 @@ size_t ZSTD_HcFindBestMatch_generic ( return ml; } } - - if (matchIndex <= ddsMinChain) { - return ml; - } } for ( ; (ddsAttempt < nbAttempts) & (matchIndex >= ddsMinChain); ddsAttempt++) {