unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: guix package --search slow ?
Date: Wed, 15 May 2019 16:50:58 +0200	[thread overview]
Message-ID: <CAJ3okZ0Eocqx6gPR4bj4ybj3ZNqqXunZLteogQm4_AcvArW-kg@mail.gmail.com> (raw)
In-Reply-To: <87k1eryflz.fsf@ambrevar.xyz>

Hi Pierre,

On Wed, 15 May 2019 at 16:08, Pierre Neidhardt <mail@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

  reply	other threads:[~2019-05-15 14:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-14 17:19 guix package --search slow ? zimoun
2019-05-14 20:17 ` Ricardo Wurmus
2019-05-15  9:54   ` zimoun
2019-05-15 11:35     ` Ricardo Wurmus
2019-05-15 13:34     ` Ludovic Courtès
2019-05-15 13:43       ` Pierre Neidhardt
2019-05-16 15:13         ` Ludovic Courtès
2019-05-15 13:48       ` Jonathan Brielmaier
2019-05-15 14:08         ` Pierre Neidhardt
2019-05-15 14:50           ` zimoun [this message]
2019-05-15 15:11             ` Pierre Neidhardt
2019-05-15 14:31         ` zimoun
2019-05-15 14:23       ` zimoun
2019-05-15 18:32       ` zimoun
2019-05-15 20:30       ` Giovanni Biscuolo
2019-05-15  2:22 ` Meiyo Peng
2019-05-15  9:59   ` zimoun
2019-05-15 14:08   ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ3okZ0Eocqx6gPR4bj4ybj3ZNqqXunZLteogQm4_AcvArW-kg@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).