mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
Change default num_threads value
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ZSTD_NUMTHREADS_DEFAULT
|
#ifndef ZSTD_NUMTHREADS_DEFAULT
|
||||||
# define ZSTD_NUMTHREADS_DEFAULT 3
|
# define ZSTD_NUMTHREADS_DEFAULT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ZSTDCLI_CLEVEL_MAX
|
#ifndef ZSTDCLI_CLEVEL_MAX
|
||||||
@@ -620,7 +620,6 @@ static int init_cLevel(void) {
|
|||||||
return ZSTDCLI_CLEVEL_DEFAULT;
|
return ZSTDCLI_CLEVEL_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pick up environment variable */
|
|
||||||
static unsigned init_numThreads(void) {
|
static unsigned init_numThreads(void) {
|
||||||
const char* const env = getenv(ENV_NUMTHREADS);
|
const char* const env = getenv(ENV_NUMTHREADS);
|
||||||
if (env != NULL) {
|
if (env != NULL) {
|
||||||
@@ -681,6 +680,7 @@ typedef enum { zom_compress, zom_decompress, zom_test, zom_bench, zom_train, zom
|
|||||||
# define MAXCLEVEL ZSTD_maxCLevel()
|
# define MAXCLEVEL ZSTD_maxCLevel()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int main(int const argCount, const char* argv[])
|
int main(int const argCount, const char* argv[])
|
||||||
{
|
{
|
||||||
int argNb,
|
int argNb,
|
||||||
|
Reference in New Issue
Block a user