diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-01-28 22:48:21 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-01-29 12:09:11 +0100 |
commit | 7cfd789150f448cf5256b88915bae4163cc9db03 (patch) | |
tree | 353a5afca4a8ae6ee34588b25b338eaa06696c9c /gnu/packages | |
parent | d7db38341af57e7eb8cff96f899e7b9fa96d92f6 (diff) | |
download | guix-7cfd789150f448cf5256b88915bae4163cc9db03.tar.gz guix-7cfd789150f448cf5256b88915bae4163cc9db03.zip |
inferior: Speed up 'cached-channel-instance' for cache hits.
That way a command like:
guix time-machine --commit=5aeee07cc9 -- describe
goes from 3.4s to 0.5s on a cache hit, even slightly less when passing
the full commit ID.
* guix/inferior.scm (channel-full-commit): New procedure.
(cached-channel-instance): Remove 'instances' top-level variable. Add
'commits' and use it for 'key'. Move 'latest-channel-instances' call to
the cache miss case.
Diffstat (limited to 'gnu/packages')
0 files changed, 0 insertions, 0 deletions