From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cumwo-00071P-8m for guix-patches@gnu.org; Sun, 02 Apr 2017 17:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cumwl-0000zL-57 for guix-patches@gnu.org; Sun, 02 Apr 2017 17:22:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cumwk-0000yx-K8 for guix-patches@gnu.org; Sun, 02 Apr 2017 17:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cumwk-00006G-6g for guix-patches@gnu.org; Sun, 02 Apr 2017 17:22:02 -0400 Subject: bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel. Resent-Message-ID: Date: Sun, 2 Apr 2017 17:21:18 -0400 From: Leo Famulari Message-ID: <20170402212118.GA28696@jasmine> References: <5vvaqyii1c.fsf@fencepost.gnu.org> <20170330222235.GB10357@jasmine> <878tnkfwlv.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <878tnkfwlv.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke Cc: efraim@flashner.co.il, 26225@debbugs.gnu.org --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 01, 2017 at 08:52:28AM +0200, Marius Bakke wrote: > > Efraim Flashner wrote: > >> * guix/scripts/pack.scm (%compressors): Add flag '-T0' when calling "x= z". > >> * guix/utils.scm (decompressed-port, compressed-port, > >> compressed-output-port): Same. > > > >> --- a/guix/utils.scm > >> +++ b/guix/utils.scm > >> @@ -154,7 +155,7 @@ a symbol such as 'xz." > >> (match compression > >> ((or #f 'none) (values input '())) > >> ('bzip2 (filtered-port `(,%bzip2 "-dc") input)) > >> - ('xz (filtered-port `(,%xz "-dc") input)) > >> + ('xz (filtered-port `(,%xz "-dc -T0") input)) > >> ('gzip (filtered-port `(,%gzip "-dc") input)) > >> (else (error "unsupported compression scheme" compressio= n)))) >=20 > Is (parallel-job-count) accessible here? It would be nice to respect it. I agree, it would be good if we respected it here, if possible. --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAljha04ACgkQJkb6MLrK fwjmyhAA4Kh8awEp7TBs8a83qSg1wzjOhMtmpZ3ocYpi70KWtQ9ZiyOTrWZMiy36 EvfbJweY+wUUqcSxbytP3nGRjRyxXSFyMw7KmTMvmGTlp2vLrw8Jn8s1mrrDvUoU cWZC5Y8lT5LUTo/vYikk0qjppBjiLtwIe+voHGqKD+2rs9pySP5iHiT5rduRpWXO R0UkLfsQkoDjkmzRbxNbwIi1TtNcUxjwhRcUEdnX4xQE1G9M4zdFIWarfos6nffD fTfOf/7ClPmGB9eZi2vfPZgOJv8GM5t/u4yJVY/goKSqim6hnzmRpMzBKpqHbYu1 YVacG2ulnCpVbDTlN+yMeasVmBGW2c2Pzpz+Ecr1GKjGWq9D8SIigBsnK6GI9N9O +f2DOmA3aWoKGnSui2InYVVAcGPlK435+Caycn4OSYZMkcOzn7E0rTowCBoYsNy7 n+8piwJ1UWb1qhImuxKNnJqFYTmef8DgMBbhS4PJXw/ZKYRm4qmk+u6uq9UPYOBg FkoSuISww/9qDBQ8Y/Gqz1SHu6CEIPYJzA8pDJyPWrbtPqv46fKoIS4rlnZREGFb YGJ2XSiirr5tMi7ukQCoJogL8jG2mpbGrxzw148QtSVAleJPte4BDb2f50XVja25 1pjvLXSt7nuHJ9yJRnwwREIBssUXu3/9ZWvb9/YG5KTzo7tbEB0= =JfVK -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--