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
This commit is contained in:
Maxim Cournoyer 2023-01-16 22:41:14 -05:00 committed by Ludovic Courtès
parent e91478e911
commit 8e57c5d1f3
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -56,7 +56,8 @@ (define %compressors
;; 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)