[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48826] [PATCH] scripts: substitute: Cache connection when looking f
From: |
Ludovic Courtès |
Subject: |
[bug#48826] [PATCH] scripts: substitute: Cache connection when looking for narinfos. |
Date: |
Sat, 05 Jun 2021 22:21:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi Mathieu,
Mathieu Othacehe <othacehe@gnu.org> skribis:
> The process-substitution procedure is opening two distinct connections. The
> first one when looking for narinfo by calling lookup-narinfo and the other one
> when fetching nar files.
>
> Cache the connection when looking for narinfos so that process-substitution
> only opens one connection.
>
> * guix/scripts/substitute.scm (lookup-narinfo): Cache connection by using
> open-connection-for-uri/cached.
Good catch, LGTM!
Thanks,
Ludo’.