[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster!

From: Ludovic Courtès
Subject: Re: Faster!
Date: Thu, 31 Jan 2013 23:22:52 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

address@hidden (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]