diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-10-27 15:24:41 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-10-27 23:04:59 +0100 |
commit | f726f6f8021e78b6a50ca0dbdb4acc91ed2161c4 (patch) | |
tree | 3d48fe188a1a81503c38350466d302c1915bcb47 /tests/cpan.scm | |
parent | cf7648f882380dd7a4e82760ecc10cc6078498eb (diff) | |
download | patches-f726f6f8021e78b6a50ca0dbdb4acc91ed2161c4.tar patches-f726f6f8021e78b6a50ca0dbdb4acc91ed2161c4.tar.gz |
derivations: 'build-expression->derivation' caches its module derivations.
This reduces the number of lookups in the 'add-data-to-store' cache from
7505 to 3329 (hit rate from 68% to 27%) when running:
GUIX_PROFILING=add-data-to-store-cache guix build libreoffice -nd
The execution time of "guix build libreoffice -nd" goes from 2.12s to 1.87s.
* guix/derivations.scm (%module-cache): New variable.
(imported+compiled-modules)[key]: New variable.
Lookup KEY in %MODULE-CACHE and populate %MODULE-CACHE upon cache miss.
Diffstat (limited to 'tests/cpan.scm')
0 files changed, 0 insertions, 0 deletions