From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctiTD-0004Gz-PC for guix-patches@gnu.org; Thu, 30 Mar 2017 18:23:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctiT8-0005sS-Rb for guix-patches@gnu.org; Thu, 30 Mar 2017 18:23:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55080) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctiT8-0005sE-Nk for guix-patches@gnu.org; Thu, 30 Mar 2017 18:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctiT8-0000er-I0 for guix-patches@gnu.org; Thu, 30 Mar 2017 18:23:02 -0400 Subject: bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel. Resent-Message-ID: Date: Thu, 30 Mar 2017 18:22:35 -0400 From: Leo Famulari Message-ID: <20170330222235.GB10357@jasmine> References: <5vvaqyii1c.fsf@fencepost.gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aT9PWwzfKXlsBJM1" Content-Disposition: inline In-Reply-To: <5vvaqyii1c.fsf@fencepost.gnu.org> 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: 26225@debbugs.gnu.org, efraim@flashner.co.il --aT9PWwzfKXlsBJM1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Efraim Flashner wrote: > * guix/scripts/pack.scm (%compressors): Add flag '-T0' when calling "xz". > * 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" compression)))) Parallel decompression isn't implemented yet, but the extra '-T0' option doesn't seem to break anything. The changes LGTM. I sent a companion patch to that enables threaded compression when building source tarballs. --aT9PWwzfKXlsBJM1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAljdhSsACgkQJkb6MLrK fwhkRBAAz6Rd76JFEETSgiWnlatIAoOraOBSk8jXNNgMixc4jCtYaQEIS3M7cOA/ QRz/VTlDZgONfhSxEPOp0vHAMrxhwdGSMIW9vqstb+mnAxzS4zIHW/nxrUQ5mkLi IgzxQqQcT3+9tPxjqcEYC74qRo2rHFGbY3KM9Ksb+G5C7LsbC2wGAG+pik3a7OtH mvOa2GVAE09vNldeW3P8spt595oDqye+Er3jjY0BZEHkpxK6ZG1qVHL0SP9QTkeT pkEFIJSjX9ofeLt1atrd+b+oQ5/37K7+WxYzyJEskHLjl5ZziknyQk8K9nwzDz+A bWWn1qW6BhddnXMY/7eRFACNJCU99w6ng03K6YlLumZxizpkLN+ISGy/7rVjcWC+ Yr9lUguLRoO0yXo0SXNBjFvedxHUKMarqcbwKLMCf9jvHOwio5E/jQifvLJvJXei bHyhmd3bkJm7hY0YWYfOGkLh/VjbDmfHShzLaDcb6dIsTsaFTfpTa/ll+5rqREpX Bpkhdc+LXz/J6cUAU1+Ry+hR7Lu2XlnSKcYWnjPIagyttg1BqxHPXyGji7Z3Fmrn pwp2wxSagRdVGOOCbA0SxdPZ/TbG92yAMjhU8y1TyFzPBgMJQqUrnvOynpgZlHFp 820uI1rWMFcqoZrkvPCEyWPdX4S+YGDslqv61Xwdw45DTf7ihGQ= =ViJO -----END PGP SIGNATURE----- --aT9PWwzfKXlsBJM1--