[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
77/182: derivations: Use a regular hash table for the module cache.
From: |
guix-commits |
Subject: |
77/182: derivations: Use a regular hash table for the module cache. |
Date: |
Fri, 15 Nov 2019 00:01:41 -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))
- 65/182: gnu: linux-libre@4.9: Update to 4.9.199., (continued)
- 65/182: gnu: linux-libre@4.9: Update to 4.9.199., guix-commits, 2019/11/15
- 68/182: gnu: linux-libre: Update to 5.3.9., guix-commits, 2019/11/15
- 64/182: gnu: linux-libre@4.4: Update to 4.4.199., guix-commits, 2019/11/15
- 67/182: gnu: linux-libre@4.19: Update to 4.19.82., guix-commits, 2019/11/15
- 66/182: gnu: linux-libre@4.14: Update to 4.14.152., guix-commits, 2019/11/15
- 72/182: gnu: eolie: Don't create icon cache., guix-commits, 2019/11/15
- 71/182: gnu: eog: Don't create icon cache., guix-commits, 2019/11/15
- 76/182: gnu: git-annex: Update to 7.20191106., guix-commits, 2019/11/15
- 75/182: gnu: john-the-ripper-jumbo: Enable tests., guix-commits, 2019/11/15
- 78/182: gnu: commencement: Ensure 'gnu-make-final' refers to the native 'pkg-config'., guix-commits, 2019/11/15
- 77/182: derivations: Use a regular hash table for the module cache.,
guix-commits <=
- 80/182: graph: Support package transformation options., guix-commits, 2019/11/15
- 74/182: gnu: john-the-ripper-jumbo: Update to 1.9.0., guix-commits, 2019/11/15
- 81/182: news: Add entry for package transformation options in "guix graph"., guix-commits, 2019/11/15
- 86/182: gnu: libdvdnav: Don't use NAME in source URI., guix-commits, 2019/11/15
- 89/182: gnu: python-dbus: Update to 1.2.10., guix-commits, 2019/11/15
- 47/182: gnu: ghex: Update to 3.18.4., guix-commits, 2019/11/15
- 63/182: gnu: modem-manager: Update to 1.10.8., guix-commits, 2019/11/15
- 69/182: gnu: gnome-disk-utility: Don't create icon cache., guix-commits, 2019/11/15
- 70/182: gnu: devhelp: Don't create icon cache., guix-commits, 2019/11/15
- 73/182: gnu: epiphany: Don't build icon cache., guix-commits, 2019/11/15