]> git.ipfire.org Git - thirdparty/zstd.git/commit
Introduce ZSTD_getFrameProgression()
authorYann Collet <cyan@fb.com>
Thu, 18 Jan 2018 00:39:02 +0000 (16:39 -0800)
committerYann Collet <cyan@fb.com>
Thu, 18 Jan 2018 00:39:02 +0000 (16:39 -0800)
commit394eec697b77f3be8079f2fb2673b23c84f37101
tree868377f1025ad75cb438da4acd3617946638f5f0
parent592ce5a0420869b0c155f3dd4e450cc659216050
Introduce ZSTD_getFrameProgression()

Produces 3 statistics for ongoing frame compression :
- ingested
- consumed (effectively compressed)
- produced

Ingested can be larger than consumed due to buffering effect.

For the time being, this patch mostly fixes the % ratio issue,
since it computes consumed / produced,
instead of ingested / produced.

That being said, update is not "smooth",
because on a slow enough setting,
fileio spends most of its time waiting for a worker to complete its job.

This could be improved thanks to more granular flushing
i.e. start flushing before ongoing job is fully completed.
doc/zstd_manual.html
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstdmt_compress.c
lib/compress/zstdmt_compress.h
lib/zstd.h
programs/fileio.c