diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-04-01 15:55:05 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-04-15 22:36:42 +0200 |
commit | 44de6d3990ee36c54fb0209bfae4fcdf6a392b15 (patch) | |
tree | 198da25eda93e61d0fd787be0083cafaa16eefdb /guix/download.scm | |
parent | 54be7795b5cc2f6cad05f8649121372c9d5af806 (diff) | |
download | guix-44de6d3990ee36c54fb0209bfae4fcdf6a392b15.tar guix-44de6d3990ee36c54fb0209bfae4fcdf6a392b15.tar.gz |
guix: Delay loading of (gnutls).
(web …) modules pull in (gnutls) indirectly. Arrange to load them
lazily, thereby reducing I/O and allocations when GnuTLS is not needed
such as when running ‘guix describe’ or ‘guix shell’ on a cache hit.
* guix/download.scm: Autoload (web uri).
* guix/scripts/describe.scm: Likewise.
* guix/store.scm: Likewise.
(%default-substitute-urls): Remove ‘resolve-interface’ call and use
https URLs unconditionally.
Change-Id: Ide470c556a14866e8740966d25821df487a79859
Diffstat (limited to 'guix/download.scm')
-rw-r--r-- | guix/download.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/download.scm b/guix/download.scm index 192c47f113..b251e1f6c0 100644 --- a/guix/download.scm +++ b/guix/download.scm @@ -32,7 +32,7 @@ #:use-module (guix monads) #:use-module (guix gexp) #:autoload (guix build utils) (call-with-temporary-output-file) - #:use-module (web uri) + #:autoload (web uri) (string->uri uri-scheme uri-path) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26) #:export (%download-methods |