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

From: Ludovic Courtès <[email-masked]>
Date: Fri, 23 Jul 2021 17:30:31 +0200

Hi Arun!

Arun Isaac <[email-masked]> 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.

Thanks,
Ludo’.