From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44040) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jS5WR-0007NH-0j for guix-patches@gnu.org; Fri, 24 Apr 2020 17:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jS5WM-0003w4-K6 for guix-patches@gnu.org; Fri, 24 Apr 2020 17:06:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jS5WM-0003vw-8F for guix-patches@gnu.org; Fri, 24 Apr 2020 17:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jS5WM-0001II-1V for guix-patches@gnu.org; Fri, 24 Apr 2020 17:06:02 -0400 Subject: [bug#39258] [PATCH v3 0/3] Package metadata cache for guix search Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200327162654.18785-1-arunisaac@systemreboot.net> Date: Fri, 24 Apr 2020 23:05:26 +0200 In-Reply-To: <20200327162654.18785-1-arunisaac@systemreboot.net> (Arun Isaac's message of "Fri, 27 Mar 2020 21:56:51 +0530") Message-ID: <87pnbwfvc9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arun Isaac Cc: mail@ambrevar.xyz, 39258@debbugs.gnu.org, zimon.toutoune@gmail.com Hi, Arun Isaac skribis: > Speedup is around 2x. Both measurements below are with a warm cache. > > $ time guix search inkscape > > real 0m1.722s > user 0m1.776s > sys 0m0.097s > > $ time /tmp/test/bin/guix search inkscape > > real 0m0.749s > user 0m0.770s > sys 0m0.020s > > This patchset does not affect the search API nor does it improve the rele= vance > of search results. If there is interest in this approach, I'll complete t= his > patchset properly. But, in the long run, I do think we should aim to get > xapian or the like for guix search. WDYT? > > Unfortunately, generate-package-metadata-cache takes 43 seconds to build = the > cache on my relatively slow computer. Performance should be better on oth= er > people's machines. 43 seconds is a lot. How do these 43 seconds compare to current =E2=80=98g= uix search=E2=80=99 on your computer? (Both do roughly the same thing.) Thanks, Ludo=E2=80=99.