]> git.ipfire.org Git - thirdparty/zstd.git/commit
Merged ZSTD_preserveUnsortedMark() into ZSTD_reduceIndex() 1013/head
authorYann Collet <cyan@fb.com>
Wed, 7 Feb 2018 22:22:35 +0000 (14:22 -0800)
committerYann Collet <cyan@fb.com>
Wed, 7 Feb 2018 22:22:35 +0000 (14:22 -0800)
commitde68c2ff10f3800f5aec60abd26e63f00b5f32bc
tree97bb9334ae27c0394e09032326be8810c825e743
parent0170cf9a7af94d9ffdcdb5cd3ebc35fcd542f2ed
Merged ZSTD_preserveUnsortedMark() into ZSTD_reduceIndex()

as it's faster, due to one memory scan instead of two
(confirmed by microbenchmark).

Note : as ZSTD_reduceIndex() is rarely invoked,
it does not translate into a visible gain.
Consider it an exercise in auto-vectorization and micro-benchmarking.
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstd_lazy.c