diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-03-04 23:10:28 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-05 00:19:10 +0100 |
commit | d4da602e4c28d704ee04ec57887fa14b134c7ebb (patch) | |
tree | 7242ce7745ceedd28401f8698636dc523c8f0212 /tests | |
parent | fcadd9ff9dfd57c4d386287477e665d4efe9090d (diff) | |
download | patches-d4da602e4c28d704ee04ec57887fa14b134c7ebb.tar patches-d4da602e4c28d704ee04ec57887fa14b134c7ebb.tar.gz |
grafts: Memoize intermediate results in 'cumulative-grafts'.
The time for:
guix build inkscape -n --no-substitutes
goes down by 30% (in the presence of 3 replacements among all the
packages.)
* guix/grafts.scm (cumulative-grafts): Turn into a monadic procedure in
%STATE-MONAD. Use the current state as a derivation-to-graft cache.
(graft-derivation): Call 'cumulative-grafts' within 'run-with-state'.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions