]> git.ipfire.org Git - thirdparty/zstd.git/commit
Optimized loop bounds to allow the compiler to unroll the loop. 1866/head
authorClement Courbet <courbet@google.com>
Tue, 5 Nov 2019 13:14:02 +0000 (14:14 +0100)
committerClement Courbet <courbet@google.com>
Fri, 15 Nov 2019 07:27:05 +0000 (08:27 +0100)
commitb3c9fc27b4596beb7452ae71647a97eb7fad08cd
tree51038fc0a0de98043184a5a8954d7f64024a6421
parent332aade3700326ae9bac6d0a5df81d6a23eb40d8
Optimized loop bounds to allow the compiler to unroll the loop.

This has no measurable impact on large files but improves small file
decompression by ~1-2% for 10kB, benchmarked with:

head -c 10000 silesia.tar > /tmp/test
make CC=/usr/local/bin/clang-9 BUILD_STATIC=1 && ./lzbench -ezstd -t1,5 /tmp/test
lib/decompress/huf_decompress.c