opt: minor improvements to log traces

slight improvement when using fractional-bit evaluation (opt:dictionay)
This commit is contained in:
Yann Collet
2018-05-09 15:46:11 -07:00
parent c39061cb7b
commit ac6105463a
3 changed files with 34 additions and 19 deletions
+2 -2
View File
@@ -161,10 +161,10 @@ size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsi
} } } }
#if 0 /* debug : symbol costs */
DEBUGLOG(2, "\n --- table statistics : ");
DEBUGLOG(5, "\n --- table statistics : ");
{ U32 symbol;
for (symbol=0; symbol<=maxSymbolValue; symbol++) {
DEBUGLOG(2, "%3u: w=%3i, maxBits=%u, fracBits=%.2f",
DEBUGLOG(5, "%3u: w=%3i, maxBits=%u, fracBits=%.2f",
symbol, normalizedCounter[symbol],
FSE_getMaxNbBits(symbolTT, symbol),
(double)FSE_bitCost(symbolTT, tableLog, symbol, 8) / 256);