]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Enable inclusion of mid-flight LDMs in opt parser
authorsenhuang42 <senhuang96@fb.com>
Mon, 5 Oct 2020 01:46:47 +0000 (21:46 -0400)
committersenhuang42 <senhuang96@fb.com>
Wed, 7 Oct 2020 17:56:25 +0000 (13:56 -0400)
lib/compress/zstd_opt.c

index 69e73cb4796a36c95f5f609f25d2c6c506f78a75..07b30f5f96a6c707a960278a189811f50a08d344 100644 (file)
@@ -871,7 +871,6 @@ static void ZSTD_opt_maybeAddLdm(ZSTD_match_t* matches, U32* nbMatches,
     /* Ensure that current block position is not outside of the match */
     if (currPosInBlock < matchStartPosInBlock
       || currPosInBlock >= matchEndPosInBlock
-      || posDiff > 0    /* As a next evolution we can enable adding LDMs in the middle of a match */
       || candidateMatchLength < MINMATCH) {
         return;
     }