GNU bug report logs -
#39258
Faster guix search using an sqlite cache
Previous Next
Full log
View this message in rfc822 format
On Fri, 24 Apr 2020 at 22:48, Ludovic Courtès <ludo <at> gnu.org> 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 package))
> > + 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
> <https://lists.gnu.org/archive/html/guix-devel/2020-01/msg00243.html>.
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
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.