From 4cf0093571f2aece4ae6f5d1047d8633323aac95 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 26 Mar 2017 14:51:00 -0700 Subject: [PATCH] restored bonus rule --- lib/dictBuilder/zdict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.47.2