[PATCH] src-release.sh: Use -T0 for xz compression
Sam James
sam@gentoo.org
Thu May 30 21:59:26 GMT 2024
Sam James <sam@gentoo.org> writes:
> Mark Wielaard <mark@klomp.org> writes:
>
>> Use parallel compression to create the xz archive.
>>
>> On my machine (using 4 cores) this reduces the time to create
>> binutils-2.42.50.tar.xz from 1 minute 40 seconds to 56 seconds.
>>
>> xz has supported -T0 since version 5.2.0 (released 2014-12-21).
>
> LGTM and it's the default from >=5.6.0 anyway. For >=5.4.0, you can use
> it for parallel *de*compression too.
>
Note that we made the same change for GCC a while ago in r13-4261-g2650b6f9147c0d.
>> ---
>> src-release.sh | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src-release.sh b/src-release.sh
>> index e454893298da..f29362aac207 100755
>> --- a/src-release.sh
>> +++ b/src-release.sh
>> @@ -239,7 +239,7 @@ do_xz()
>> ver=$2
>> echo "==> Xzipping $package-$ver.tar.xz"
>> rm -f $package-$ver.tar.xz
>> - $XZPROG -k -v -9 $package-$ver.tar
>> + $XZPROG -k -v -9 -T0 $package-$ver.tar
>> }
>>
>> # Compress the output with zstd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 377 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240530/63aced20/attachment-0001.sig>
More information about the Binutils
mailing list