improved compression speed

introduced cache in ZSTD_setLog2Prices
This commit is contained in:
inikep
2016-03-09 15:45:01 +01:00
parent 48413765b4
commit b5a519f43c
2 changed files with 31 additions and 11 deletions
+6
View File
@@ -207,6 +207,12 @@ typedef struct {
U32 litLengthSum;
U32 litSum;
U32 offCodeSum;
U32 log2matchLengthSum;
U32 log2matchSum;
U32 log2litLengthSum;
U32 log2litSum;
U32 log2offCodeSum;
U32 factor;
#if ZSTD_OPT_DEBUG == 3
U32 realMatchSum;
U32 realLitSum;