[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel
From: |
Marius Bakke |
Subject: |
bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel. |
Date: |
Sat, 01 Apr 2017 08:52:28 +0200 |
User-agent: |
Notmuch/0.24 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu) |
Leo Famulari <address@hidden> 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 <https://bugs.gnu.org/26316> that enables
> threaded compression when building source tarballs.
Is (parallel-job-count) accessible here? It would be nice to respect it.
signature.asc
Description: PGP signature
- bug#26225: [PATCH] guix: Compress and decompress xz archives in parallel.,
Marius Bakke <=