From: "Ludovic Courtès" <ludo@gnu.org>
To: 22990-done@debbugs.gnu.org
Subject: bug#22990: Grafts leads to inefficient substitute info retrieval
Date: Sun, 29 Mar 2020 15:41:24 +0200 [thread overview]
Message-ID: <87tv271dob.fsf@gnu.org> (raw)
In-Reply-To: <8737rxx8gk.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 11 Mar 2016 17:52:59 +0100")
Hi younger self!
ludo@gnu.org (Ludovic Courtès) skribis:
> As of right now (v0.9.0-2007-g66a30a3), ‘graft-derivation’ works either by:
>
> 1. Fetching substitute info about the things being built so that it
> can determine its references, which in turns allows it to determine
> whether they need to be grafted.
>
> 2. Building stuff, as a last resort, so that it can determine its
> references.
>
> Case #1 is hopefully going to be the most common.
>
> The problem with #1 is that when building a profile, we do one
> ‘package-derivation’ call for each package in the profile, which
> translates in one ‘graft-derivation’ call for each relevant package¹,
> which translates into one ‘references/substitutes’ call for each.
>
> Concretely, what this means is this:
>
> $ guix package -u
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> substitute: updating list of substitutes from 'http://mirror.guixsd.org'... 100.0%
> […]
> The following files would be downloaded:
>
> Each of the initial “updating list” message corresponds to an HTTP
> request for a single narinfo file, which can take around 1 second.
This is finally fixed with commit
710854304b1ab29332edcb76f3de532e0724c197, as discussed earlier this
week¹. \o/
The solution is simpler and more orthogonal than what was envisioned
earlier in this thread, which is nice.
I also potentially addresses other uses of “dynamic dependencies”
elsewhere in the code base, such as ‘remote-eval’ calls in ‘guix
deploy’.
Feedback welcome!
Ludo’.
¹ https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00337.html
prev parent reply other threads:[~2020-03-30 2:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-11 16:52 bug#22990: Grafts leads to inefficient substitute info retrieval Ludovic Courtès
2016-03-12 9:23 ` Alex Kost
2016-03-13 12:11 ` Ludovic Courtès
2016-03-15 18:49 ` Mark H Weaver
2016-03-15 21:50 ` Ludovic Courtès
2016-03-15 8:24 ` Ludovic Courtès
2017-01-08 21:44 ` Ludovic Courtès
2017-01-09 22:55 ` Ludovic Courtès
2017-01-11 9:54 ` Ludovic Courtès
2017-01-11 10:51 ` David Craven
2017-01-11 21:19 ` Ludovic Courtès
2020-03-29 13:41 ` Ludovic Courtès [this message]
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=87tv271dob.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=22990-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).