From: Yann Collet Date: Sun, 26 Mar 2017 21:51:00 +0000 (-0700) Subject: restored bonus rule X-Git-Tag: v1.2.0^2~80^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F631%2Fhead;p=thirdparty%2Fzstd.git restored bonus rule --- diff --git a/lib/dictBuilder/zdict.c b/lib/dictBuilder/zdict.c index cd2e3a2f5..bee5e059d 100644 --- a/lib/dictBuilder/zdict.c +++ b/lib/dictBuilder/zdict.c @@ -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))