From: "Ludovic Courtès" <ludo@gnu.org>
To: 45323-done@debbugs.gnu.org
Subject: bug#45323: [PATCH] substitute: Reuse connections for '--query'.
Date: Wed, 23 Dec 2020 16:06:14 +0100 [thread overview]
Message-ID: <87o8ikwoih.fsf@gnu.org> (raw)
In-Reply-To: <20201219144952.2725-1-ludo@gnu.org> ("Ludovic Courtès"'s message of "Sat, 19 Dec 2020 15:49:52 +0100")
Ludovic Courtès <ludo@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’.
next prev parent reply other threads:[~2020-12-23 15:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-19 14:49 [bug#45323] [PATCH] substitute: Reuse connections for '--query' Ludovic Courtès
2020-12-23 15:06 ` Ludovic Courtès [this message]
2020-12-24 11:06 ` Christopher Baines
2020-12-27 14:57 ` Ludovic Courtès
2020-12-30 22:55 ` Christopher Baines
2021-01-04 10:55 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8ikwoih.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=45323-done@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).