]> git.ipfire.org Git - thirdparty/zstd.git/commit
optimize ZSTDMT_compress() memory usage
authorYann Collet <cyan@fb.com>
Sat, 1 Apr 2017 01:27:03 +0000 (18:27 -0700)
committerYann Collet <cyan@fb.com>
Sat, 1 Apr 2017 01:27:03 +0000 (18:27 -0700)
commit30c76989704975b3fe7f3561d751a5ba24d838e8
tree1b080ee219bf65d88cecb2a2ccafe09eba726d0f
parent3f75d5252766bf0e638cf3fb7f5d63da50baaefe
optimize ZSTDMT_compress() memory usage

does no longer allocate temporary buffers
when there is enough room in dstBuffer to decompress directly there.
(previous method would skip that for 1st chunk only).

Also : fix ZSTD_compressBound() for small srcSize
lib/compress/zstd_compress.c
lib/compress/zstdmt_compress.c
tests/zstreamtest.c