GNU bug report logs - #39258
Faster guix search using an sqlite cache

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Thu, 23 Jan 2020 19:53:02 UTC

Severity: important

Done: Arun Isaac <arunisaac <at> systemreboot.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>, 39258 <at> debbugs.gnu.org
Cc: Maxime Devos <maximedevos <at> telenet.be>, 50384 <at> debbugs.gnu.org
Subject: [bug#39258] bug#50384: [PATCH] Optimise search-patch (reducing I/O)
Date: Mon, 11 Oct 2021 10:09:42 +0200
Hi Ludo,

On Fri, 8 Oct 2021 at 09:41, Ludovic Courtès <ludo <at> gnu.org> wrote:

> Yes, that’s what I thought: <proto-package> could be used in
> ‘fold-available-packages’ & co., so that would kind of unify that.

Therefore, do we agree that the cache /lib/guix/package.cache should
be extended?  Because the v3 adding an extra cache [1] shows
improvements of "guix search" and v4 moving the extra fields to the
regular cache [2] shows the same improvements for searching and in
addition improves this cache generation.  The issue with v4 is the
field 'license'.  And v6 is an attempt to by-pass that (keep the
regular cache and only read on-the-fly the required information); but
because of this, I guess:

    (module-ref (resolve-interface module) symbol)

it is slower!

1: <http://issues.guix.gnu.org/39258#68>
2: <http://issues.guix.gnu.org/39258#89>
3: <http://issues.guix.gnu.org/39258#119>

All the bests,
simon

PS: For cross-reference, discussion originally happened on
<https://issues.guix.gnu.org/50384>.




This bug report was last modified 37 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.