Hi Evan, Evan Cooney <evancoone...@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’.