all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Some code in guix-package* is somehow reached multiple times without any clear reason?
@ 2024-11-03 20:46 Evan Cooney
  2024-11-04 22:41 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Evan Cooney @ 2024-11-03 20:46 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

Hello guix developers,

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/

It's mostly profiling data, but the point is that there is more than one
report from the profiler, meaning  that it was called more than one time.

Thank you,
Evan Cooney

[-- Attachment #2: Type: text/html, Size: 1047 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Some code in guix-package* is somehow reached multiple times without any clear reason?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-11-04 22:41 UTC (permalink / raw)
  To: Evan Cooney; +Cc: guix-devel

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’.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-04 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.