From 972e063219eb877ee701a8bb9cb5d316d3bcfdf8 Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Tue, 1 Sep 2020 16:08:49 -0400 Subject: [PATCH] Change default num_threads value --- programs/zstdcli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,