From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Faster! Date: Thu, 31 Jan 2013 23:22:52 +0100 Message-ID: <87622dgfgj.fsf@gnu.org> References: <874nhzk2dh.fsf@gnu.org> <201301302217.36280.andreas@enge.fr> <87sj5ifhtm.fsf@gnu.org> <201301302309.07567.andreas@enge.fr> <87ehh2ffo1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U12X2-00014u-Oy for bug-guix@gnu.org; Thu, 31 Jan 2013 17:22:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U12X1-0001aq-72 for bug-guix@gnu.org; Thu, 31 Jan 2013 17:22:56 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:33681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U12X1-0001aV-1S for bug-guix@gnu.org; Thu, 31 Jan 2013 17:22:55 -0500 In-Reply-To: <87ehh2ffo1.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 30 Jan 2013 23:51:26 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > No, but it=E2=80=99s true that it=E2=80=99s 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=E2=80=99t 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=E2=80=99.