]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Remove Pre-Existing Repcode Check
authorW. Felix Handte <w@felixhandte.com>
Tue, 29 May 2018 20:05:48 +0000 (16:05 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 13 Jun 2018 18:58:36 +0000 (14:58 -0400)
lib/compress/zstd_lazy.c

index e90f51a742496bef9741317f7f3b88172f7ecfc6..3a82ef48d7927d7cbf16a5d9251ed54cb252c6b3 100644 (file)
@@ -549,12 +549,6 @@ size_t ZSTD_compressBlock_lazy_generic(
                                base + repIndex;
 
         /* check repCode */
-        if ((offset_1>0) & (MEM_read32(ip+1) == MEM_read32(ip+1 - offset_1))) {
-            /* repcode : we take it */
-            matchLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4;
-            if (depth==0) goto _storeSequence;
-        }
-
         if (dictMode == ZSTD_dictMatchState
             && ((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */)
             && (MEM_read32(repMatch) == MEM_read32(ip+1)) ) {