]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
restored bonus rule 631/head
authorYann Collet <cyan@fb.com>
Sun, 26 Mar 2017 21:51:00 +0000 (14:51 -0700)
committerYann Collet <cyan@fb.com>
Sun, 26 Mar 2017 21:51:00 +0000 (14:51 -0700)
lib/dictBuilder/zdict.c

index cd2e3a2f52c708927c4ad0e06f461310ae674b57..bee5e059df0bcab34debc6fb735b5927d77315dc 100644 (file)
@@ -393,7 +393,7 @@ static U32 ZDICT_tryMerge(dictItem* table, dictItem elt, U32 eltNbToSkip, const
             table[u].length += addedLength;
             table[u].pos = elt.pos;
             table[u].savings += elt.savings * addedLength / elt.length;   /* rough approx */
-            // table[u].savings += elt.length / 8;    /* rough approx bonus */
+            table[u].savings += elt.length / 8;    /* rough approx bonus */
             elt = table[u];
             /* sort : improve rank */
             while ((u>1) && (table[u-1].savings < elt.savings))