guix/guix
Ludovic Courtès 9da5ec7099
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?'.
2021-03-21 23:41:01 +01:00
..
build download: 'tls-wrap' treats premature TLS termination as EOF. 2021-03-19 21:44:36 +01:00
build-system build-system/node: Remove unnecessary imports. 2021-03-19 13:23:27 +01:00
import import: gnome: Silence URL redirect messages. 2021-03-17 23:10:19 +01:00
scripts substitute: Choose compression method based on past CPU usage. 2021-03-21 23:41:01 +01:00
store database: Validate #:nar-size and #:time when registering store items. 2021-01-31 21:49:58 +01:00
tests tests: do not hard code HTTP ports 2021-03-06 11:41:48 +01:00
android-repo-download.scm
avahi.scm
base16.scm
base32.scm
base64.scm
build-system.scm
bzr-download.scm
cache.scm
channels.scm channels: Add the channel branch in sexp->channel. 2021-03-10 16:53:51 +01:00
ci.scm ci: Add missing imports. 2021-01-31 21:49:58 +01:00
colors.scm
combinators.scm
config.scm.in build: Add '--with-channel-commit' and related configure flags. 2021-02-04 09:23:39 +01:00
cpio.scm
cve.scm
cvs-download.scm
d3.v3.js
deprecation.scm
derivations.scm
describe.scm describe: Make sure package-channels always returns a list. 2021-02-25 10:24:11 +01:00
diagnostics.scm
discovery.scm
docker.scm docker: Pass '--hard-dereference' to 'tar' to ensure reproducible builds. 2021-02-08 23:50:35 +01:00
download.scm download: Autoload (guix build download). 2021-03-19 13:23:27 +01:00
elf.scm
ftp-client.scm ftp-client: Before 'PASV', try 'EPSV' first for IPv6. 2021-02-15 08:38:00 +08:00
gexp.scm gexp: Honor #:target in 'compiled-modules'. 2021-03-05 12:49:28 +01:00
git-authenticate.scm channels: Consider the current channel commit as authentic. 2021-02-04 09:23:39 +01:00
git-download.scm git-download: Autoload Guile-Git. 2021-03-19 13:23:27 +01:00
git.scm
glob.scm
gnu-maintenance.scm gnu-maintenance: Accept underscores as package/version separators. 2021-03-20 22:29:14 +01:00
gnupg.scm
grafts.scm grafts: Inline 'grafting?' and 'set-grafting'. 2021-02-23 15:24:47 +01:00
graph.js
graph.scm
hg-download.scm
http-client.scm http-client: 'http-fetch' and 'http-fetch/cached' accept #:log-port. 2021-03-17 23:10:19 +01:00
i18n.scm
inferior.scm inferior: Add <inferior> printer. 2021-03-13 22:51:18 +01:00
licenses.scm licenses: Add Zero-Clause BSD License. 2021-03-06 11:41:49 +01:00
lint.scm
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
narinfo.scm substitute: Choose compression method based on past CPU usage. 2021-03-21 23:41:01 +01:00
openpgp.scm openpgp: Remove now unnecessary procedure. 2021-03-02 23:12:37 +01:00
packages.scm ci: Remove hydra support. 2021-03-10 08:49:48 +01:00
pki.scm
profiles.scm profiles: 'package->manifest-entry' preserves transformations by default. 2021-03-05 12:49:27 +01:00
profiling.scm
progress.scm
quirks.scm
records.scm
remote.scm
repl.scm
scripts.scm guix: scripts: Fix corner cases of hint for option typo. 2021-02-24 23:50:13 +01:00
search-paths.scm
self.scm import: Add Go importer. 2021-03-10 18:01:48 +01:00
serialization.scm serialization: Micro-optimize string literal output in 'write-file-tree'. 2021-03-01 17:45:51 +01:00
sets.scm
ssh.scm
status.scm download: Autoload (guix build download). 2021-03-19 13:23:27 +01:00
store.scm store: Micro-optimize object cache lookup. 2021-02-23 15:24:49 +01:00
substitutes.scm substitutes: lookup-narinfos: Return the number of requests made. 2021-03-17 20:46:20 +00:00
svn-download.scm
swh.scm
tests.scm Revert "tests: Refer to '%derivation-cache' in the right module." 2021-03-06 11:41:48 +01:00
transformations.scm
ui.scm ui: Bug-report URL in '--help' can be translated. 2021-02-24 23:44:10 +01:00
upstream.scm
utils.scm utils: Use Guile-zlib for gzip compression and decompression. 2021-03-12 15:59:46 +01:00
workers.scm