From: Martin Liska Date: Mon, 6 Jul 2020 22:18:20 +0000 (+0200) Subject: Rename ZSTDMT_NBTHREADS_MAX to ZSTDMT_NBWORKERS_MAX. X-Git-Tag: v1.4.7~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4307e870a22fbca9dbc9425b3c4fed91bb20bae5;p=thirdparty%2Fzstd.git Rename ZSTDMT_NBTHREADS_MAX to ZSTDMT_NBWORKERS_MAX. Rename it in zstd man page. --- diff --git a/programs/zstd.1 b/programs/zstd.1 index 9ba0b4fa4..d8127ecec 100644 --- a/programs/zstd.1 +++ b/programs/zstd.1 @@ -123,7 +123,7 @@ Note: cannot use both this and \-D together Note: \fB\-\-long\fR mode will be au This is also used during compression when using with \-\-patch\-from=\. In this case, this parameter overrides that maximum size allowed for a dictionary\. (128 MB)\. . .IP "\(bu" 4 -\fB\-T#\fR, \fB\-\-threads=#\fR: Compress using \fB#\fR working threads (default: 1)\. If \fB#\fR is 0, attempt to detect and use the number of physical CPU cores\. In all cases, the nb of threads is capped to ZSTDMT_NBTHREADS_MAX==200\. This modifier does nothing if \fBzstd\fR is compiled without multithread support\. +\fB\-T#\fR, \fB\-\-threads=#\fR: Compress using \fB#\fR working threads (default: 1)\. If \fB#\fR is 0, attempt to detect and use the number of physical CPU cores\. In all cases, the nb of threads is capped to ZSTDMT_NBWORKERS_MAX==200\. This modifier does nothing if \fBzstd\fR is compiled without multithread support\. . .IP "\(bu" 4 \fB\-\-single\-thread\fR: Does not spawn a thread for compression, use a single thread for both I/O and compression\. In this mode, compression is serialized with I/O, which is slightly slower\. (This is different from \fB\-T1\fR, which spawns 1 compression thread in parallel of I/O)\. This mode is the only one available when multithread support is disabled\. Single\-thread mode features lower memory usage\. Final compressed result is slightly different from \fB\-T1\fR\. diff --git a/programs/zstd.1.md b/programs/zstd.1.md index 176a856c7..fbbb37558 100644 --- a/programs/zstd.1.md +++ b/programs/zstd.1.md @@ -147,7 +147,7 @@ the last one takes effect. * `-T#`, `--threads=#`: Compress using `#` working threads (default: 1). If `#` is 0, attempt to detect and use the number of physical CPU cores. - In all cases, the nb of threads is capped to ZSTDMT_NBTHREADS_MAX==200. + In all cases, the nb of threads is capped to ZSTDMT_NBWORKERS_MAX==200. This modifier does nothing if `zstd` is compiled without multithread support. * `--single-thread`: Does not spawn a thread for compression, use a single thread for both I/O and compression.