From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Inverted index to accelerate guix package search Date: Wed, 15 Jan 2020 22:19:28 +0100 Message-ID: References: <87a76r68u6.fsf@ambrevar.xyz> <87sgkgxwir.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 ([2001:470:142:3::10]:52331) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irq4j-0002CI-Hi for guix-devel@gnu.org; Wed, 15 Jan 2020 16:19:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irq4i-00018v-Ki for guix-devel@gnu.org; Wed, 15 Jan 2020 16:19:41 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:46771) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irq4i-00018S-GF for guix-devel@gnu.org; Wed, 15 Jan 2020 16:19:40 -0500 Received: by mail-qt1-x835.google.com with SMTP id e25so5767806qtr.13 for ; Wed, 15 Jan 2020 13:19:39 -0800 (PST) In-Reply-To: <87sgkgxwir.fsf@elephly.net> 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-mx.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: Guix Devel Hi Ricardo, On Wed, 15 Jan 2020 at 22:03, Ricardo Wurmus wrote: > We could build and install the index when Guix is built and installed > and then use it for the search. I can=E2=80=99t think of a downside to a= dopting > an index compared to what we have now. I agree that it is an easy move that improve the current search experience.= :-) So, yes work in progress... using the code that Arun sent and the code already available: sets.scm and pull.scm etc.. And how to adapt the lookup to the current fold-packages+regexp-matching. Do you think `vhash' is better than `hash-table'? However, I am not clear about how "guix pull" works so how to update the index. Still trying to figure out. :-) Well I am not clear about what is cached... I mean my folder ~/.cache/guix is crowdy. ;-) Cheers, simon