| 29 Mar 2022 |
Linux Hackerman | I've learnt something new today! Thanks all :) | 12:44:29 |
Atemu | toonn: In that case, an LZMA compressor like lzip or XZ would be best if you want best compression with slow but not unreasonably slow speeds. Otherwise, zstd. | 12:45:07 |
Atemu | toonn: Though if it's only needed by people who re-build the stdenv, they'd appreciate the orders of magnitude in speed of zstd more than the few MiB saved by LZMA | 12:47:17 |
toonn | atemu12: The idea is that network bandwidth makes a bigger difference than the decompression speed. | 12:53:19 |
toonn | I think I'll just try both and do some minimal benchmarking. | 12:54:13 |
Atemu | toonn: At higher LZMA levels, that's actually not necessarily true IIRC. Also, a user hacking on the stdenv likely unpacks the tarball more often than they download it and likely needs to download so many source files that the difference between LZMA and zstd is a drop in the water | 12:56:22 |
toonn | It's also the bandwidth from the project's perspective, of course. | 12:57:36 |
toonn | And the tarball only needs to be unpacked once. Unless the result is garbage collected. But the tarball itself would probably also be GCed, I suppose. | 12:58:18 |