From: senhuang42 Date: Tue, 1 Sep 2020 20:08:49 +0000 (-0400) Subject: Change default num_threads value X-Git-Tag: v1.4.7~78^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=972e063219eb877ee701a8bb9cb5d316d3bcfdf8;p=thirdparty%2Fzstd.git Change default num_threads value --- diff --git a/programs/zstdcli.c b/programs/zstdcli.c index d20b4b054..6d8724a5d 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -17,7 +17,7 @@ #endif #ifndef ZSTD_NUMTHREADS_DEFAULT -# define ZSTD_NUMTHREADS_DEFAULT 3 +# define ZSTD_NUMTHREADS_DEFAULT 1 #endif #ifndef ZSTDCLI_CLEVEL_MAX @@ -620,7 +620,6 @@ static int init_cLevel(void) { return ZSTDCLI_CLEVEL_DEFAULT; } -/* pick up environment variable */ static unsigned init_numThreads(void) { const char* const env = getenv(ENV_NUMTHREADS); if (env != NULL) { @@ -681,6 +680,7 @@ typedef enum { zom_compress, zom_decompress, zom_test, zom_bench, zom_train, zom # define MAXCLEVEL ZSTD_maxCLevel() #endif + int main(int const argCount, const char* argv[]) { int argNb,