mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
derivations: Use a regular hash table for the module cache.
The hit rate of the 'add-data-to-store' cache goes from 10% to 4% on: guix build -e '(@@ (gnu packages libreoffice) libreoffice)' -nd * guix/derivations.scm (%module-cache): Turn into a regular hash table. It didn't make sense to use a weak-value hash table given that values are pairs.
This commit is contained in:
parent
91d1955df9
commit
6654677675
1 changed files with 1 additions and 1 deletions
|
@ -1208,7 +1208,7 @@ (define builder
|
|||
|
||||
(define %module-cache
|
||||
;; Map a list of modules to its 'imported+compiled-modules' result.
|
||||
(make-weak-value-hash-table))
|
||||
(make-hash-table))
|
||||
|
||||
(define* (imported+compiled-modules store modules #:key
|
||||
(system (%current-system))
|
||||
|
|
Loading…
Reference in a new issue