From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: guix package --search slow ? Date: Wed, 15 May 2019 15:34:39 +0200 Message-ID: <87r28zu9hs.fsf@gnu.org> References: <87o9447pul.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQu3Q-00064a-7z for guix-devel@gnu.org; Wed, 15 May 2019 09:34:45 -0400 In-Reply-To: (zimoun's message of "Wed, 15 May 2019 11:54:30 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: zimoun Cc: Guix Devel Hi zimoun, zimoun skribis: > Your machine is probably faster than mine ;-) For the record, commit 94aeec0aef03ab44e41bfc3e77c3b623cb3d607c, shortly before 1.0, make =E2=80=98guix search=E2=80=99 faster (as in less CPU usage= .) > $ time guix package --search=3Dnumpy > real 0m7.353s > user 0m1.256s > sys 0m0.136s > > $ time guix package --search=3Dconduit > real 0m0.728s > user 0m0.764s > sys 0m0.044s > > compared to Debian `aptitude` for example: > > $ time aptitude search numpy > real 0m3.513s > user 0m0.692s > sys 0m0.092s > > $ time aptitude search conduit > real 0m0.622s > user 0m0.540s > sys 0m0.048s The cold-cache timings are worse for Guix, which ends up doing a lot of I/O to traverse all these .scm files; APT only has to go through a couple of files I guess. The warm-cache timings are comparable though, which I think is good. :-) We could probably improve the cold-cache timings by adding synopses and descriptions to the package cache that =E2=80=98guix pull=E2=80=99 builds in ~/.config/guix/current/lib/guix/package.cache, but that would also make that cache bigger. Not sure if it=E2=80=99s worth it. Thanks, Ludo=E2=80=99.