derivations: Use a regular hash table for the module cache.
authorLudovic Courtès <ludo@gnu.org>
Wed, 6 Nov 2019 21:02:34 +0000 (22:02 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 7 Nov 2019 17:39:55 +0000 (18:39 +0100)
commit665467767577172db40eea510583dbf2faf56a58
tree3543bd9f5a152d6a92691ce86f5725d29b2684f2
parent91d1955df90d7cb281e62c0924feef7b08eabca1
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