GNU bug report logs -
#45323
[PATCH] substitute: Reuse connections for '--query'.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 19 Dec 2020 14:51:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 45323-done <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> skribis:
> This significantly speeds up things like substituting the closure of a
> .drv. This is a followup to 5ff521452b9ec2aae9ed8e4bb7bdc250a581f203.
>
> * guix/scripts/substitute.scm (http-multiple-get): Add #:open-connection
> and #:keep-alive? and honor them.
> (open-connection-for-uri/maybe): Use 'open-connection-for-uri/cached'
> instead of 'guix:open-connection-for-uri'. Call 'http-multiple-get'
> within 'call-with-cached-connection'.
> (open-connection-for-uri/cached): Add #:timeout and #:verify-certificate?
> and honor them.
> (call-with-cached-connection): Add 'open-connection' parameter and
> honor it.
> ---
> guix/scripts/substitute.scm | 97 ++++++++++++++++++++++---------------
> 1 file changed, 59 insertions(+), 38 deletions(-)
Pushed as be5a75ebb5988b87b2392e2113f6590f353dd6cd!
You can check the effect by running ‘guix build XYZ.drv’, where XYZ.drv
is not available locally yet.
Ludo’.
This bug report was last modified 4 years and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.