]> git.ipfire.org Git - thirdparty/zstd.git/commit
Always check Huffman tables for ZSTD_lazy+ 586/head
authorNick Terrell <terrelln@fb.com>
Fri, 3 Mar 2017 20:30:24 +0000 (12:30 -0800)
committerNick Terrell <terrelln@fb.com>
Sat, 4 Mar 2017 00:49:38 +0000 (16:49 -0800)
commit54c4babd8f67d40cbc63c2cd2cd77914ec80d4ee
tree7ec5924c13421a681f7d45b7c26a8395c9771b6c
parentf44b55c18d1f1d800670c5f40c6781be86ff0a34
Always check Huffman tables for ZSTD_lazy+

The compressor always reuses the existing Huffman table if the literals
size is at most 1 KiB. If the compression strategy is `ZSTD_lazy` or
stronger always check to see if reusing the previous table or creating
a new table is better.

This doesn't yet weigh in decompression speed. I don't want to add any
heuristics there until I have real data to work with to ensure that the
heuristic works for at least one use case, preferably more.
lib/common/huf.h
lib/compress/huf_compress.c
lib/compress/zstd_compress.c