all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Evan Cooney <evancooney71@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Some code in guix-package* is somehow reached multiple times without any clear reason?
Date: Mon, 04 Nov 2024 23:41:09 +0100	[thread overview]
Message-ID: <87a5ee39mi.fsf@gnu.org> (raw)
In-Reply-To: <CA+NEbmTe3nZ+kXecXaUuw+4Ys0MhmHv7Kt0XW8zE+KqJOEyucg@mail.gmail.com> (Evan Cooney's message of "Sun, 3 Nov 2024 20:46:23 +0000")

Hi Evan,

Evan Cooney <evancooney71@gmail.com> skribis:

> I was profiling each expression in guix-package* trying to find which
> expression takes the most time to evaluate when I noticed the profiling
> command displaying data multiple times despite wrapping an expression that
> looks like it's only evaluated one time. Here is the code:
> https://paste.debian.net/1334468/. I checked the definition of
> call-build-hander and only invokes its thunk argument one time, so I have
> no idea what's going on here. Could someone explain why this might be
> happening?
>
> Here is the output produced when installing librewolf:
> https://paste.debian.net/1334470/

You pastes have expired; maybe have it inline next time?

‘with-build-handler’ etc. is a mechanism used for grafts and described
in this post:

  https://guix.gnu.org/en/blog/2020/grafts-continued/

In the presence of grafts, the “build handler” may be called several
times, indeed.

Ludo’.


      reply	other threads:[~2024-11-04 22:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-03 20:46 Some code in guix-package* is somehow reached multiple times without any clear reason? Evan Cooney
2024-11-04 22: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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5ee39mi.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=evancooney71@gmail.com \
    --cc=guix-devel@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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.