]> git.ipfire.org Git - thirdparty/zstd.git/commit
Only load extra table positions for CDicts 1098/head
authorNick Terrell <terrelln@fb.com>
Mon, 2 Apr 2018 21:41:30 +0000 (14:41 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 2 Apr 2018 21:41:30 +0000 (14:41 -0700)
commit295ab0dbfa5cf822fb7d41b4a825e53d3451677a
treea0319313e6394b7807c786e8ca412b5430fc9ef2
parentdaf3ab0aad663fc0c5217593b830caa06f6032ac
Only load extra table positions for CDicts

Zstdmt uses prefixes to load the overlap between segments. Loading extra
positions makes compression non-deterministic, depending on the previous
job the context was used for. Since loading extra position takes extra
time as well, only do it when creating a `ZSTD_CDict`.

Fixes #1077.
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstd_double_fast.c
lib/compress/zstd_double_fast.h
lib/compress/zstd_fast.c
lib/compress/zstd_fast.h
lib/compress/zstd_ldm.c
lib/compress/zstdmt_compress.c