all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 68242@debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: [bug#68242] [PATCH core-updates v2 2/5] compression: Enable zstd parallel compression.
Date: Fri,  5 Jan 2024 14:52:51 -0500	[thread overview]
Message-ID: <af3992ac362f996fe5eea8c63e787dba929b9b5c.1704484373.git.maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <cover.1704484373.git.maxim.cournoyer@gmail.com>

* gnu/compression.scm (%compressors) [zstd]: Provide the --threads argument.

Change-Id: I4e8dfe725d1b0721c0016c3013b9e609fee94367
---

(no changes since v1)

 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)
-- 
2.41.0





  parent reply	other threads:[~2024-01-05 19:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04 15:16 [bug#68242] [PATCH 0/5] Compress man pages using zstd Maxim Cournoyer
2024-01-05 19:52 ` [bug#68242] [PATCH core-updates v2 " Maxim Cournoyer
2024-01-05 19:52   ` [bug#68242] [PATCH core-updates v2 1/5] utils: Lower xz compression memory usage limit to 20% Maxim Cournoyer
2024-01-08 17:26     ` [bug#68242] [core-updates] Compress man pages using zstd Ludovic Courtès
2024-01-05 19:52   ` Maxim Cournoyer [this message]
2024-01-08 17:26     ` Ludovic Courtès
2024-01-05 19:52   ` [bug#68242] [PATCH core-updates v2 3/5] packages: Repack patched source archives via zstd by default Maxim Cournoyer
2024-01-08 17:25     ` [bug#68242] [core-updates] Compress man pages using zstd Ludovic Courtès
2024-01-05 19:52   ` [bug#68242] [PATCH core-updates v2 4/5] build: gnu-build-system: Compress man pages with zstd Maxim Cournoyer
2024-01-08 17:29     ` [bug#68242] [core-updates] Compress man pages using zstd Ludovic Courtès
2024-01-09  1:17       ` Maxim Cournoyer
2024-01-05 19:52   ` [bug#68242] [PATCH core-updates v2 5/5] man-db: Add support for zstd compressed man pages Maxim Cournoyer
2024-01-08 17:30     ` [bug#68242] [core-updates] Compress man pages using zstd Ludovic Courtès
2024-01-09  3:31       ` bug#68242: " Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af3992ac362f996fe5eea8c63e787dba929b9b5c.1704484373.git.maxim.cournoyer@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=68242@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.