aboutsummaryrefslogtreecommitdiff
path: root/gnu/compression.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-01-16 22:41:14 -0500
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:44:22 +0200
commit8e57c5d1f3aaa789ad6aa0450c4235f8c4245f3a (patch)
tree21c4f57c80bcf7afef1af03af7e3de17fcf2213a /gnu/compression.scm
parente91478e9119ffb01f785d9b423158130aa1152e0 (diff)
downloadguix-8e57c5d1f3aaa789ad6aa0450c4235f8c4245f3a.tar
guix-8e57c5d1f3aaa789ad6aa0450c4235f8c4245f3a.tar.gz
compression: Enable zstd parallel compression.
* gnu/compression.scm (%compressors) [zstd]: Provide the --threads argument. Reviewed-by: Ludovic Courtès <ludo@gnu.org> Change-Id: I4e8dfe725d1b0721c0016c3013b9e609fee94367
Diffstat (limited to 'gnu/compression.scm')
-rw-r--r--gnu/compression.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/compression.scm b/gnu/compression.scm
index 0418e80a15..6e48de5979 100644
--- a/gnu/compression.scm
+++ b/gnu/compression.scm
@@ -56,7 +56,8 @@
;; The default level 3 compresses better than gzip in a
;; fraction of the time, while the highest level 19
;; (de)compresses more slowly and worse than xz.
- #~(list #+(file-append zstd "/bin/zstd") "-3"))
+ #~(list #+(file-append zstd "/bin/zstd") "-3"
+ (format #f "--threads=~a" (parallel-job-count))))
(compressor "none" "" #f)))
(define (lookup-compressor name)