From: "Ludovic Courtès" <ludo@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: Speed up grafts by storing reference offset in index
Date: Sun, 15 Dec 2024 01:10:43 +0100 [thread overview]
Message-ID: <871py9kdq4.fsf@gnu.org> (raw)
In-Reply-To: <87o71frbl8.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 13 Dec 2024 13:50:27 +0100")
Hi!
Ricardo Wurmus <rekado@elephly.net> skribis:
> Since it is December and I'm in a silly mood here is a silly idea: would
> it make sense to shift parts of the grafting work to an offloadable
> build? Here's what I imagine:
>
> - on the build farms build an additional derivation for a references
> file. The references file is an S-expression containing a list of
> tuples of the form (FILE-NAME OFFSET). Each of these tuples
> identifies the location of a single reference at the recorded byte
> OFFSET in FILE-NAME.
>
> - when computing grafts, don't search the local files sequentially for
> references but look them up in the references file. Instead of
> computing the reference file substitute it from a build server.
This sounds quite ambitious and it’s unclear that this would be
beneficial (it would be beneficial *if* scanning for references is
substantially more expensive than just copying the part of the file that
would be scanned, and it’s far from obvious that this holds.)
I have another, more down-to-earth proposal: ungraft more often! That’s
the spirit of the auto-ungraft manifest and jobset:
<https://issues.guix.gnu.org/74654>… but it doesn’t quite work as
expected because of ‘rust-ring’ shenanigans:
<https://lists.gnu.org/archive/html/guix-devel/2024-12/msg00113.html>.
(Making grafting faster would still be welcome, but I’d rather look for
a “local” optimization in the code itself.)
Ludo’.
prev parent reply other threads:[~2024-12-15 0:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 12:50 Speed up grafts by storing reference offset in index Ricardo Wurmus
2024-12-15 0:10 ` 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=871py9kdq4.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/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).