From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 11:33:50 2020 Received: (at 39258) by debbugs.gnu.org; 26 Apr 2020 15:33:50 +0000 Received: from localhost ([127.0.0.1]:33936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSjHy-0002cn-HL for submit@debbugs.gnu.org; Sun, 26 Apr 2020 11:33:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSjHw-0002cZ-Pf for 39258@debbugs.gnu.org; Sun, 26 Apr 2020 11:33:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44677) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSjHo-00024n-Qt; Sun, 26 Apr 2020 11:33:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49132 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSjHo-0001HT-Dw; Sun, 26 Apr 2020 11:33:40 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Neidhardt Subject: Re: [bug#39258] [PATCH v3 1/3] guix: Generate package metadata cache. References: <20200327162654.18785-1-arunisaac@systemreboot.net> <20200327162654.18785-2-arunisaac@systemreboot.net> <87h7x8haor.fsf@gnu.org> <87r1wa48n0.fsf@gnu.org> <87r1wa70wj.fsf@ambrevar.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Flor=C3=A9al?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 26 Apr 2020 17:33:37 +0200 In-Reply-To: <87r1wa70wj.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sun, 26 Apr 2020 16:54:36 +0200") Message-ID: <87368q45ym.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 39258 Cc: Arun Isaac , 39258@debbugs.gnu.org, zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Hey! Pierre Neidhardt skribis: > Ludovic Court=C3=A8s writes: > >> It=E2=80=99s complicated. As it stands, I=E2=80=99d rather not add over= head to =E2=80=98guix >> pull=E2=80=99, especially since current =E2=80=98guix search=E2=80=99 on= my SSD is fast enough >> and can hardly be made any faster. > > The question is, what is fast enough? I have an NVMe here that has a > throughput of some 2GB/s, and yet > > time guix search emacs > /dev/null > real 0m1.545s > user 0m1.938s > sys 0m0.080s That accounts for the time to render 864 entries: $ guix search emacs| grep ^name| wc -l 864 Compare with: $ time guix search emacs | head -100 > /dev/null real 0m0.674s user 0m0.802s sys 0m0.048s Again, this is not to say it cannot be improved, but it=E2=80=99s quite a challenge to do better on such hardware. Though as discussed with Arun, there may be low-hanging optimization fruits in Texinfo parsing and rendering. I guess we need to go ahead fire up statprof now. :-) Ludo=E2=80=99.