GNU bug report logs - #62069
Support xz parallel compression in dist-xz

Previous Next

Package: automake;

Reported by: Sam James <sam <at> gentoo.org>

Date: Thu, 9 Mar 2023 08:50:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Sam James <sam <at> gentoo.org>
To: 62069 <at> debbugs.gnu.org
Subject: bug#62069: Support xz parallel compression in dist-xz
Date: Thu, 09 Mar 2023 08:47:23 +0000
[Message part 1 (text/plain, inline)]
xz supports parallel compression which obviously speeds up
the time taken to run the 'dist-xz' rule, but it also
speeds up *decompression* too, as the parallel compressor
creates different output which can be decompressed in parallel.

There's two options, I think, for automake:
1. Pass -T+1 to xz if xz is >= 5.4.0 (a runtime check
would be needed, but it's cheap to do) as this uses
1 thread, but uses the parallel compressor to do it,
so allows decompression in parallel by users;

2. Pass -T0 (or -Tn, n >= 1) to allow autodetection
of the number of available CPU cores (or n if specified)
which also then naturally uses the threaded compressor.


[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.