]> git.ipfire.org Git - thirdparty/zstd.git/commit
dictionary compression use correct file size estimation
authorYann Collet <cyan@fb.com>
Sat, 14 Oct 2017 08:21:43 +0000 (01:21 -0700)
committerYann Collet <cyan@fb.com>
Sat, 14 Oct 2017 08:21:43 +0000 (01:21 -0700)
commitfc8d293460d6767558843ac8231c249dcc704382
tree0e31bda404cac96adc8c0b20e741c9251390e1fe
parent5eed8e7a5538be8fc39ab94d1a61e161bbc348b9
dictionary compression use correct file size estimation

when determining compression parameters
to compress one file only.

For multiple files, it still "bets" that files are going to be small.

There was also a bug recently added in ZSTD_CCtx_loadDictionary_advanced()
making it incapable to use pledgedSrcSize to determine compression parameters.
lib/compress/zstd_compress.c
programs/fileio.c