diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-06-06 18:46:49 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-06-06 23:28:48 +0200 |
commit | 58bb833365db4e8934a386497d5b00a063cfd27d (patch) | |
tree | f355e18d609c09c2d21706ccf8aa20217ce666b8 /tests/packages.scm | |
parent | 22fdca91a9edaca2ed0a714d2309470646c73c97 (diff) | |
download | guix-58bb833365db4e8934a386497d5b00a063cfd27d.tar.gz guix-58bb833365db4e8934a386497d5b00a063cfd27d.zip |
grafts: Improve performance for derivations with many inputs.
Partly fixes <https://bugs.gnu.org/41702>.
Reported by Lars-Dominik Braun <ldb@leibniz-psychology.org>.
Previously we'd potentially traverse the same sub-graph of DEPS several
times.
With this patch, command:
guix environment --ad-hoc r-learnr --search-paths
goes from 11.3s to 4.6s.
* guix/grafts.scm (reference-origin): Rename to...
(reference-origins): ... this. Change 'item' parameter to 'items'.
[lookup-derivers]: New procedure.
(cumulative-grafts)[dependency-grafts]: Change 'item' to 'items' and use
'reference-origins'.
Remove 'mapm' around 'dependency-grafts' call.
Diffstat (limited to 'tests/packages.scm')
0 files changed, 0 insertions, 0 deletions