From ad39b7a7189c43a19af63aac11396ac38c1825ae Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 16 Jun 2016 01:14:41 +0200 Subject: [PATCH] zdict stores standard rep-offset. It can use custom ones, but the proper formula and impact on statistics is not done yet. --- lib/dictBuilder/zdict.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/dictBuilder/zdict.c b/lib/dictBuilder/zdict.c index ace0fc154..0814581fe 100644 --- a/lib/dictBuilder/zdict.c +++ b/lib/dictBuilder/zdict.c @@ -727,6 +727,13 @@ static size_t ZDICT_analyzeEntropy(void* dstBuffer, size_t maxDstSize, } huffLog = (U32)errorCode; + /* looking for most common first offsets */ + { U32 offset; + for (offset=1; offset