[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
77/184: derivations: Use a regular hash table for the module cache.
From: |
guix-commits |
Subject: |
77/184: derivations: Use a regular hash table for the module cache. |
Date: |
Wed, 27 Nov 2019 14:37:04 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome-updates
in repository guix.
commit a633c7bc3527f7a9c9fd0019a7ba306fe5af6fbe
Author: Ludovic Courtès <address@hidden>
Date: Wed Nov 6 22:02:34 2019 +0100
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.
---
guix/derivations.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/derivations.scm b/guix/derivations.scm
index bde9370..6cdf55b 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -1208,7 +1208,7 @@ they can refer to each other."
(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))
- 52/184: gnu: yelp: Update to 3.32.2., (continued)
- 52/184: gnu: yelp: Update to 3.32.2., guix-commits, 2019/11/27
- 53/184: gnu: gnome-session: Update to 3.32.0., guix-commits, 2019/11/27
- 55/184: gnu: file-roller: Update to 3.32.2., guix-commits, 2019/11/27
- 57/184: gnu: python-dbusmock: Update to 0.18.3., guix-commits, 2019/11/27
- 59/184: gnu: pipewire: Update to 0.2.7., guix-commits, 2019/11/27
- 64/184: gnu: linux-libre@4.4: Update to 4.4.199., guix-commits, 2019/11/27
- 65/184: gnu: linux-libre@4.9: Update to 4.9.199., guix-commits, 2019/11/27
- 72/184: gnu: eolie: Don't create icon cache., guix-commits, 2019/11/27
- 75/184: gnu: john-the-ripper-jumbo: Enable tests., guix-commits, 2019/11/27
- 76/184: gnu: git-annex: Update to 7.20191106., guix-commits, 2019/11/27
- 77/184: derivations: Use a regular hash table for the module cache.,
guix-commits <=
- 74/184: gnu: john-the-ripper-jumbo: Update to 1.9.0., guix-commits, 2019/11/27
- 81/184: news: Add entry for package transformation options in "guix graph"., guix-commits, 2019/11/27
- 80/184: graph: Support package transformation options., guix-commits, 2019/11/27
- 84/184: doc: Add clarification on the '--source' build option., guix-commits, 2019/11/27
- 89/184: gnu: python-dbus: Update to 1.2.10., guix-commits, 2019/11/27
- 82/184: gnu: Add nginx Accept Language module., guix-commits, 2019/11/27
- 91/184: gnu: libssh: Update to 0.9.2., guix-commits, 2019/11/27
- 93/184: gnu: polybar: Update to 3.4.1., guix-commits, 2019/11/27
- 97/184: gnu: r-abcrf: Update to 1.8.1., guix-commits, 2019/11/27
- 101/184: gnu: r-hmisc: Update to 4.3-0., guix-commits, 2019/11/27