aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/popt.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-03-14 15:05:30 +0100
committerLudovic Courtès <ludo@gnu.org>2021-03-21 23:41:01 +0100
commit9da5ec7099b992a8969a17627548cd341c01bd90 (patch)
tree82fa6307254029d42c3af67878c5f89dbdbc7164 /gnu/packages/popt.scm
parent5f9b28b231e17749d14a1b95ae9cad68d7315a1e (diff)
downloadguix-9da5ec7099b992a8969a17627548cd341c01bd90.tar.gz
guix-9da5ec7099b992a8969a17627548cd341c01bd90.zip
substitute: Choose compression method based on past CPU usage.
This stems from the observation that substitute download can be CPU-bound when high-speed networks are in use: https://lists.gnu.org/archive/html/guix-devel/2020-12/msg00177.html * guix/narinfo.scm (decompresses-faster?): New procedure. (narinfo-best-uri): Add #:fast-decompression?. * guix/scripts/substitute.scm (%prefer-fast-decompression?): New variable. (call-with-cpu-usage-monitoring): New procedure. (with-cpu-usage-monitoring): New macro. (display-narinfo-data, process-substitution): Pass #:fast-decompression? to 'narinfo-best-uri'. (process-substitution): Wrap 'restore-file' call in 'with-cpu-usage-monitoring'. Set '%prefer-fast-decompression?'.
Diffstat (limited to 'gnu/packages/popt.scm')
0 files changed, 0 insertions, 0 deletions