From: W. Felix Handte Date: Thu, 20 Aug 2020 21:17:10 +0000 (-0400) Subject: Remove Chain Limit on Hash Cache Entries; Slightly Improve Compression X-Git-Tag: v1.4.7~81^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b9a755ac9a10d211c306f4ee26d7da1a9a07c96;p=thirdparty%2Fzstd.git 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. :) --- 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++) {