Hi Pierre, On Wed, 15 May 2019 at 16:08, Pierre Neidhardt <m...@ambrevar.xyz> wrote: > > > Another idea would be to have some kind of simple search which only > > includes the package name and maybe the synopsis. > > For Emacs users, it's what helm-system-packages does. It implements its > own names+synopses cache. helm-system-packages takes some seconds on > first start to build the cache; after that you get instant live search! :)
You are doing ads for your package ;-) Well, I cite your doctring [1], that's the point. Guix is extremely slow to list everything, thus the cache is persisted on drive. It's only updated whenever `helm-system-packages-guix--last-pull-commits' is different from the cache commit. And what do mean by this comment [2] ;; We build both caches at the same time. We could also build just-in-time, but ;; benchmarks show that it only saves less than 20% when building one cache. Last, the "slowness" comes from `guix package --search` doing there [3], I guess. What is the size of the persistent cache? [1] https://github.com/emacs-helm/helm-system-packages/blob/master/helm-system-packages-guix.el#L141 [2] https://github.com/emacs-helm/helm-system-packages/blob/master/helm-system-packages-guix.el#L148 [3] https://github.com/emacs-helm/helm-system-packages/blob/master/helm-system-packages-guix.el#L163 Cheers, simon