aboutsummaryrefslogtreecommitdiff
path: root/src/xz/message.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-01-23 18:29:28 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-01-23 18:29:28 +0200
commit6daa4d0ea46a8441f21f609149f3633158bf4704 (patch)
treef8a3fd6fdc49b7eba8c421e3c944a02f8baaaf9c /src/xz/message.c
parentCI: Use RISC-V filter when building with BCJ support. (diff)
downloadxz-6daa4d0ea46a8441f21f609149f3633158bf4704.tar.xz
xz: Use threaded mode by defaut (as if --threads=0 was used).
This hopefully does more good than bad: + It's faster by default. + Only the threaded compressor creates files that can be decompressed in threaded mode. - Compression ratio is worse, usually not too much though. When it matters, -T1 must be used. - Memory usage increases. - Scripts that assume single-threaded mode but don't use -T1 will possibly use too much resources, for example, if they run multiple xz processes in parallel to compress multiple files. - Output from single-threaded and multi-threaded compressors differ but such changes could happen for other reasons too (they just haven't happened since 5.0.0).
Diffstat (limited to 'src/xz/message.c')
-rw-r--r--src/xz/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/message.c b/src/xz/message.c
index b94a0eba..7756b5b2 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -1022,8 +1022,8 @@ message_help(bool long_help)
" does not affect decompressor memory requirements"));
puts(_(
-" -T, --threads=NUM use at most NUM threads; the default is 1; set to 0\n"
-" to use as many threads as there are processor cores"));
+" -T, --threads=NUM use at most NUM threads; the default is 0 which uses\n"
+" as many threads as there are processor cores"));
if (long_help) {
puts(_(