From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu0nJ-0007ln-PE for guix-patches@gnu.org; Fri, 31 Mar 2017 13:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu0nG-00017x-Lv for guix-patches@gnu.org; Fri, 31 Mar 2017 13:57:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu0nG-00017i-HR for guix-patches@gnu.org; Fri, 31 Mar 2017 13:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cu0nG-0004WO-5z for guix-patches@gnu.org; Fri, 31 Mar 2017 13:57:02 -0400 Subject: bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel. Resent-Message-ID: From: Kei Kebreau References: <5vvaqyii1c.fsf@fencepost.gnu.org> <20170330222235.GB10357@jasmine> Date: Fri, 31 Mar 2017 13:56:37 -0400 In-Reply-To: <20170330222235.GB10357@jasmine> (Leo Famulari's message of "Thu, 30 Mar 2017 18:22:35 -0400") Message-ID: <87h9295nze.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Leo Famulari Cc: efraim@flashner.co.il, 26225@debbugs.gnu.org --=-=-= Content-Type: text/plain Leo Famulari writes: > 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. LGTM as well. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAljemFUACgkQ5qXuPBlG eg15DQ//WCd4qGdVJRgi+mo8Z2Oq9XF1xR7P4ud4J5kRGFqZbWzOysFldBC6a4AN I9f2uLX0lh1+uj+WMUSyZxHO4pwiB1PC2K9EK4Clx5WwZLC9gqxueWhIQ41XI6Rq qgHHlNxfZhaTeI6qglpLtxdZUZqF1RDrjvBZXSVd4oYty/EhRvaJbKYhkUN+CaeV PVwcg2Wh5K7SeYC1IuMBTp6fppue/QmfLUhgr9F6IzYxXN9UoSImxXz1whQlj1f4 /dV4TzbGGPIbczWpVuTE1jxa20yFoOm3YnkkAU9F8111fC3G8UPXjWWT9mQPYf2/ Xrup/5dyX5FtORU1492Y0imZWTgvAoIoTDkjpe68r62ztzuuR+pv6pZwKdnXZ7Do jHow9nF6bINquK7x/FYcRO2buIAQrj18KgohrsMa4/WbCKNqr7oUz8MoLwpFOH/S SVTfDZlP52ay8koSnhe2e+TXH6UyIkJ9MPejkPiBxS1s4yP90BnF9w9eexXLYDty eimR9uq/E+e11My58eFCT8mIj+hNs4r6DQEwpBGXSPtyBSWwFSuCXdxIBY7OxYJ8 iQHcALnelvdCv99Hk+k0mEVCMyT4ChHrWtkajIZpsUxkEUOPApUSzdEp7jmAU/BY OqPOtehOZsR2tVY629VNsBFWD5YCedzh7CbEfx4B0uSg2dyrimQ= =iwIp -----END PGP SIGNATURE----- --=-=-=--