l...@gnu.org (Ludovic Courtès) skribis:

> No, but it’s true that it’s surprisingly slow to start:
>
> $ time ./pre-inst-env guix-package
>
> real    0m1.084s
> user    0m0.904s
> sys     0m0.058s

This is actually the time it takes to connect to the daemon, and to
compute the derivation of Guile (which is then used to build the
profile, if a profile gets built.)

Queries (-I and -A) don’t need this, so I just rearranged the code
accordingly.  Both now take less than .2s on my laptop.

In the roll-back case, neither is necessary, except when rolling back to
generation 0 for the first time.  All other actions need it.  So I just
kept it for all the actions, including roll-back.

Thanks,
Ludo’.

Reply via email to