[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#39258] [PATCH v6 1/2] DRAFT packages: Add fields to packages cache.

From: Ludovic Courtès
Subject: [bug#39258] [PATCH v6 1/2] DRAFT packages: Add fields to packages cache.
Date: Fri, 23 Jul 2021 17:30:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hi Arun!

Arun Isaac <> skribis:

> Also, why do we need two separate functions---fold-available-packages
> and fold-packages? Can't fold-available-packages do everything
> fold-packages can and thus totally replace it?

The initial goal was for ‘fold-available-packages’ to be lightweight.
Currently, it doesn’t allocate anything; instead, it passes info as
keyword parameters, which the callee is free to ignore.  That’s why
these two procedures have different signatures.

One benchmark is “guix package -A > /dev/null”.  This should take
ideally 0.5s at most because that’s what’s used by shell completion (the
first time); currently it takes 0.82s on my laptop, though.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]