]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed performance regression with ZSTD_decompress() on small files
authorYann Collet <cyan@fb.com>
Wed, 24 May 2017 20:15:19 +0000 (13:15 -0700)
committerYann Collet <cyan@fb.com>
Wed, 24 May 2017 20:15:19 +0000 (13:15 -0700)
commit2e4db3e531e224118a316d50174300116a2f99ca
tree99b2b1975c48818866d16ffd3355d0262a9d6222
parent11ea2f7fda3a9508438066dab6c333210c328ea2
fixed performance regression with ZSTD_decompress() on small files

memset() was a quick fix to initialization problems,
but initialize too much space (tables, buffers)
which show up in decompression speed of ZSTD_decompress()
since it needs to recreate DCtx at each invocation.

Fixed by only initialization relevant pointers and size fields.
lib/decompress/zstd_decompress.c