From 8e57c5d1f3aaa789ad6aa0450c4235f8c4245f3a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 16 Jan 2023 22:41:14 -0500 Subject: [PATCH] compression: Enable zstd parallel compression. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/compression.scm (%compressors) [zstd]: Provide the --threads argument. Reviewed-by: Ludovic Courtès Change-Id: I4e8dfe725d1b0721c0016c3013b9e609fee94367 --- gnu/compression.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ (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)