]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change default num_threads value
authorsenhuang42 <senhuang96@fb.com>
Tue, 1 Sep 2020 20:08:49 +0000 (16:08 -0400)
committersenhuang42 <senhuang96@fb.com>
Mon, 7 Sep 2020 22:09:48 +0000 (18:09 -0400)
programs/zstdcli.c

index d20b4b05434b4d7d8c0c5bf908cb0e5827e7090d..6d8724a5dab17f0ea3adff96bae20a5a1fb68e98 100644 (file)
@@ -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,