From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSduJ-0004tZ-3O for guix-patches@gnu.org; Sun, 26 Apr 2020 05:49:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSduI-000546-JW for guix-patches@gnu.org; Sun, 26 Apr 2020 05:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSduI-00051I-60 for guix-patches@gnu.org; Sun, 26 Apr 2020 05:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSduI-0005cY-43 for guix-patches@gnu.org; Sun, 26 Apr 2020 05:49:02 -0400 Subject: [bug#39258] [PATCH v3 1/3] guix: Generate package metadata cache. Resent-Message-ID: MIME-Version: 1.0 References: <20200327162654.18785-1-arunisaac@systemreboot.net> <20200327162654.18785-2-arunisaac@systemreboot.net> <87h7x8haor.fsf@gnu.org> In-Reply-To: <87h7x8haor.fsf@gnu.org> From: zimoun Date: Sun, 26 Apr 2020 11:48:36 +0200 Message-ID: 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Arun Isaac , Pierre Neidhardt , 39258@debbugs.gnu.org On Fri, 24 Apr 2020 at 22:48, Ludovic Court=C3=A8s wrote: > > + (define (expand-cache package result) > > + (cons `#(,(package-name package) > > + ,(package-version package) > > + ,(delete-duplicates > > + (map package-full-name > > + (sort (filter package? (package-direct-inputs pack= age)) > > + package > + ,(package-outputs package) > > + ,(package-supported-systems package) > > + ,(package-synopsis package) > > + ,(package-description package) > > + ,(package-home-page package) > > + ,(let ((location (package-location package))) > > + (list (location-file location) > > + (location-line location) > > + (location-column location)))) > > I was wondering if we could omit inputs, which are not that useful. Agree. > Note that this is probably the place where we could eventually add the > computation of an inverted index like zimoun suggested in > . We should first agree on the extra cost (time) we are ready to pay to build improvements. See the lengthy message [1] about only the caching "inverted index" using the current 'relevance' scoring function. [1] http://issues.guix.gnu.org/39258#78 Cheers, simon