From: W. Felix Handte Date: Mon, 17 Aug 2020 16:37:58 +0000 (-0400) Subject: Enable Dedicated Dict Search in the CLI X-Git-Tag: v1.4.7~81^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46306087b4ce37c1d31309d8db9f843b9cb05fc;p=thirdparty%2Fzstd.git Enable Dedicated Dict Search in the CLI --- diff --git a/programs/fileio.c b/programs/fileio.c index 241afd7cf..d3285113a 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -931,6 +931,7 @@ static cRess_t FIO_createCResources(FIO_prefs_t* const prefs, CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_targetLength, (int)comprParams.targetLength) ); CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_strategy, comprParams.strategy) ); CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_literalCompressionMode, (int)prefs->literalCompressionMode) ); + CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_enableDedicatedDictSearch, 1) ); /* multi-threading */ #ifdef ZSTD_MULTITHREAD DISPLAYLEVEL(5,"set nb workers = %u \n", prefs->nbWorkers);