From: "Ludovic Courtès" <ludo@gnu.org>
To: 48853-done@debbugs.gnu.org
Subject: bug#48853: [PATCH] profiles: Move some of the work to the build side.
Date: Sat, 12 Jun 2021 00:55:10 +0200 [thread overview]
Message-ID: <875yyk3tbl.fsf@gnu.org> (raw)
In-Reply-To: <20210605210856.10481-1-ludo@gnu.org> ("Ludovic Courtès"'s message of "Sat, 5 Jun 2021 23:08:56 +0200")
Ludovic Courtès <ludo@gnu.org> skribis:
> When running:
>
> guix environment --ad-hoc gnome --no-grafts --search-paths
>
> this reduces wall-clock time by ~5%. The number of object cache lookups
> goes down from 96K to 89K. (Note that 'gnome' is an interesting example
> because it has many propagated inputs, which themselves have propagated
> inputs too, which would lead to a long input list and a long manifest in
> the 'profile-derivation' gexp.)
>
> * guix/profiles.scm (profile-derivation)[inputs, search-paths]: Remove.
> [extra-inputs]: New variable.
> [builder]: Adjust call to 'build-profile'.
> * guix/build/profiles.scm (manifest-sexp->inputs+search-paths): New
> procedure.
> (build-profile): Remove 'inputs' parameter; make 'manifest' the 2nd
> positional parameter and add #:extra-inputs. Call
> 'manifest-sexp->inputs+search-paths' to obtain 'inputs' and
> 'search-paths'.
> ---
> guix/build/profiles.scm | 86 +++++++++++++++++++++++++++--------------
> guix/profiles.scm | 25 ++++--------
> 2 files changed, 64 insertions(+), 47 deletions(-)
Pushed as 8cef92d0633850d97c1a1d4521812268f56672be.
prev parent reply other threads:[~2021-06-11 22:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-05 21:08 [bug#48853] [PATCH] profiles: Move some of the work to the build side Ludovic Courtès
2021-06-11 22:55 ` 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=875yyk3tbl.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=48853-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).