[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50384] [PATCH] Optimise search-patch (reducing I/O)
From: |
zimoun |
Subject: |
[bug#50384] [PATCH] Optimise search-patch (reducing I/O) |
Date: |
Mon, 04 Oct 2021 18:46:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi,
On Mon, 27 Sep 2021 at 18:17, Ludovic Courtès <ludo@gnu.org> wrote:
> Rough design sketch:
>
> The idea I have in mind would be to have <package> be a sub-record-type
> of <proto-package>, where <proto-package> would contain only the
> metadata currently provided by ‘fold-available-packages’ (mainly: name,
> version, module/variable).
>
> <proto-package> would have a gexp compiler that looks up the
> package/derivation mapping in ~/.cache/guix and either return it
> directly (cache hit) or look up the corresponding <package>, do all the
> work, and add an entry in the cache (cache miss).
In this rough design sketch, would this <proto-package> help for
improving the situation of "guix search"? Well, could this cache help
at more place than search-patch?
Cheers,
simon
- [bug#50384] [PATCH] Optimise search-patch (reducing I/O),
zimoun <=