Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion programs/zstdcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
# define ZSTDCLI_CLEVEL_DEFAULT 3
#endif

#ifndef ZSTDCLI_AUTO_THREADING_LOGICAL
# define ZSTDCLI_AUTO_THREADING_LOGICAL 0
#endif

#ifndef ZSTDCLI_CLEVEL_MAX
# define ZSTDCLI_CLEVEL_MAX 19 /* without using --ultra */
#endif
Expand Down Expand Up @@ -237,7 +241,11 @@ static void usageAdvanced(const char* programName)
DISPLAYOUT(" -T# Spawn # compression threads. [Default: %u; pass 0 for core count.]\n", init_nbWorkers(ZSTDCLI_NBTHREADS_DEFAULT));
DISPLAYOUT(" --single-thread Share a single thread for I/O and compression (slightly different than `-T1`).\n");
DISPLAYOUT(" --auto-threads={physical|logical}\n");
DISPLAYOUT(" Use physical/logical cores when using `-T0`. [Default: Physical]\n\n");
#ifdef ZSTDCLI_AUTO_THREADING_LOGICAL
DISPLAYOUT(" Use physical/logical cores when using `-T0`. [Default: Logical ]\n\n");
#else
DISPLAYOUT(" Use physical/logical cores when using `-T0`. [Default: Physical ]\n\n");
#endif
DISPLAYOUT(" --jobsize=# Set job size to #. [Default: 0 (automatic)]\n");
DISPLAYOUT(" --rsyncable Compress using a rsync-friendly method (`--jobsize=#` sets unit size). \n");
DISPLAYOUT("\n");
Expand Down Expand Up @@ -1113,6 +1121,9 @@ int main(int argCount, const char* argv[])
defaultLogicalCores = 1;
continue;
}
#ifdef ZSTDCLI_AUTO_THREADING_LOGICAL
defaultLogicalCores = 1;
#endif
#ifdef UTIL_HAS_MIRRORFILELIST
if (longCommandWArg(&argument, "--output-dir-mirror")) {
NEXT_FIELD(outMirroredDirName);
Expand Down