From: inikep Date: Thu, 7 Apr 2016 17:24:33 +0000 (+0200) Subject: use extDict only when needed X-Git-Tag: v0.6.1^2~39^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf79f9bff71c55898db71d5997ccbcb92650acf;p=thirdparty%2Fzstd.git use extDict only when needed --- diff --git a/lib/zstd_compress.c b/lib/zstd_compress.c index ab2a2d908..4d737605a 100644 --- a/lib/zstd_compress.c +++ b/lib/zstd_compress.c @@ -1989,7 +1989,7 @@ typedef void (*ZSTD_blockCompressor) (ZSTD_CCtx* ctx, const void* src, size_t sr static ZSTD_blockCompressor ZSTD_selectBlockCompressor(ZSTD_strategy strat, int extDict) { static const ZSTD_blockCompressor blockCompressor[2][6] = { -#if 0 +#if 1 { ZSTD_compressBlock_fast, ZSTD_compressBlock_greedy, ZSTD_compressBlock_lazy, ZSTD_compressBlock_lazy2, ZSTD_compressBlock_btlazy2, ZSTD_compressBlock_btopt }, #else { ZSTD_compressBlock_fast_extDict, ZSTD_compressBlock_greedy_extDict, ZSTD_compressBlock_lazy_extDict,ZSTD_compressBlock_lazy2_extDict, ZSTD_compressBlock_btlazy2_extDict, ZSTD_compressBlock_btopt_extDict },