diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-09-29 21:39:39 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-09-29 22:03:46 +0200 |
commit | 9ffc1c00e55eb7931846dbb3fafcf54716fff57c (patch) | |
tree | e4db3cb23fddd47a85febf843a147248710a1179 /tests/store.scm | |
parent | 34942e959744129d848ed430a595a3f5e887e1dc (diff) | |
download | guix-9ffc1c00e55eb7931846dbb3fafcf54716fff57c.tar guix-9ffc1c00e55eb7931846dbb3fafcf54716fff57c.tar.gz |
packages: Optimize 'find-packages-by-name' to avoid disk accesses.
On a profile with 182 entries, "guix package --search-paths" goes from
4.5 seconds down to 0.4 second.
* gnu/packages.scm (find-packages-by-name): Make a name -> package vhash
in a promise; access it with 'vhash-fold*'.
Diffstat (limited to 'tests/store.scm')
0 files changed, 0 insertions, 0 deletions