Bug#988271: mmdebstrap: Use all cores when compressing with zstd

2021-05-09 Thread Johannes Schauer Marin Rodrigues
Quoting Vagrant Cascadian (2021-05-09 10:17:42)
> Currently zstd compression, while overall fast, only uses a single thread.
> The attached patch passes the --threads=0 option to zstd (just like in the xz
> case) so that it can take advantage of multiple cores.

https://gitlab.mister-muffin.de/josch/mmdebstrap/commit/c51fb24c7b272d42c04d72eb3bd7fe4781baa39d

signature.asc
Description: signature


Bug#988271: mmdebstrap: Use all cores when compressing with zstd

2021-05-09 Thread Vagrant Cascadian
Package: mmdebstrap
Version: 0.7.5-2
Severity: wishlist
Tags: patch
X-Debbugs-Cc: vagr...@debian.org

Currently zstd compression, while overall fast, only uses a single
thread. The attached patch passes the --threads=0 option to zstd (just
like in the xz case) so that it can take advantage of multiple cores.

live well,
  vagrant
From 540ebc47df0de654d105ffe75a2426e4d1cc8731 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian 
Date: Sun, 9 May 2021 01:11:30 -0700
Subject: [PATCH] Use all cores when compressing with zstd.

---
 mmdebstrap | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmdebstrap b/mmdebstrap
index 5e549e5..be6e813 100755
--- a/mmdebstrap
+++ b/mmdebstrap
@@ -219,7 +219,7 @@ sub get_tar_compressor {
 } elsif ($filename =~ /\.(xz|txz)$/) {
 return ['xz', '--threads=0'];
 } elsif ($filename =~ /\.zst$/) {
-return ['zstd'];
+return ['zstd', '--threads=0'];
 }
 return;
 }
-- 
2.30.2



signature.asc
Description: PGP signature