From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu5ZS-0003lS-MZ for guix-patches@gnu.org; Fri, 31 Mar 2017 19:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu5ZO-0001yF-P0 for guix-patches@gnu.org; Fri, 31 Mar 2017 19:03:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu5ZO-0001xx-EL for guix-patches@gnu.org; Fri, 31 Mar 2017 19:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cu5ZO-0008Uk-69 for guix-patches@gnu.org; Fri, 31 Mar 2017 19:03:02 -0400 Subject: bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel. Resent-Message-ID: Date: Fri, 31 Mar 2017 19:01:58 -0400 From: Leo Famulari Message-ID: <20170331230158.GA9642@jasmine> References: <5vvaqyii1c.fsf@fencepost.gnu.org> <20170330222235.GB10357@jasmine> <87h9295nze.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <87h9295nze.fsf@openmailbox.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: Kei Kebreau Cc: efraim@flashner.co.il, 26225@debbugs.gnu.org --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 31, 2017 at 01:56:37PM -0400, Kei Kebreau wrote: > Leo Famulari writes: >=20 > > 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)))) > > > > 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. >=20 > LGTM as well. AFAICT, this doesn't cause mass rebuilds. --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlje3+AACgkQJkb6MLrK fwif8g/+Nxyq4Jp56kYniociZcomjXKfPz2tCvd06pNtQObyuZlIQqNCU66bQIoD A09A3aQPbnc88eTqv3bE1a6KJH7h9suPzvls2/j5ddah5MHDZABh+YT3yCNQW7no xseINtlkbYxGXo5aCcJ6cEjLmzF60FmgN93/wpNJOXXMXAtyF4IWccgB/lovRQNe Zvm6RLxY95Xfj5kiw0SOsNTRnxOtwY2oRvNrcKYKSeaBoaSPOaD8RQNS0Y1tBH8E dSvb52NenO8LqqQScY3QDvj2LpoLs6KsGUE7YKGJNQj4lU/HAJWT9yxyCjwHO0kr ZEAmYfX7CeO4y54lo9h3uuqArJIhq0/glotqxqikWmWKpRvK9clpthPRD07bWz5u 0cNmbJw7+a/ykqDo6PmPtWItN+wn0DvFufIUBJCJhd0jSat9VfUVeJoTCqfP1par 5k5s4P46BFZS9npPDQPBcVqVaEI8HX+VNAGpfYByE9Q4/mieKGVFFMsgD9E7EiMT ojtjYPcSBnQgogY6qjZKSQhBj4Q3GdQVUUKjPFTZhyncS/mDaPbTnoXfUTx3KzmA +kSEjKEXZkTwr7pvTkBWydvSToVOq36ovX997rlbFL6lDh2ONBY7BLrqtNicQ0Jc 2qTXtftNLOlUqwCmbiFyFXiIZu4zUSFn71dp0EQbi3/anyDSruU= =oLYK -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--