]> git.ipfire.org Git - thirdparty/zstd.git/commit
ZSTDMT_compress() creates a single frame
authorYann Collet <cyan@fb.com>
Wed, 11 Jan 2017 17:21:25 +0000 (18:21 +0100)
committerYann Collet <cyan@fb.com>
Wed, 11 Jan 2017 17:21:25 +0000 (18:21 +0100)
commit5eb749e734120c3b50c4e434b45728ac7cdcc451
tree8f80e3ff9ac78343805b51bdf4a47da632e76e04
parent04cbc364996dc6688436500b327003b63537631c
ZSTDMT_compress() creates a single frame

The new strategy involves cutting frame at block level.
The result is a single frame, preserving ZSTD_getDecompressedSize()

As a consequence, bench can now make a full round-trip,
since the result is compatible with ZSTD_decompress().

This strategy will not make it possible to decode the frame with multiple threads
since the exact cut between independent blocks is not known.
MT decoding needs further discussions.
Makefile
lib/compress/zstd_compress.c
lib/compress/zstdmt_compress.c
lib/zstd.h
programs/Makefile
programs/bench.c