gnu: bootstrap: Cache the 'bootstrap-executable' origins.
authorLudovic Courtès <ludo@gnu.org>
Sun, 27 Oct 2019 21:42:59 +0000 (22:42 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 27 Oct 2019 22:05:01 +0000 (23:05 +0100)
commitac19950507e941b6263f62f4ee4e8934c1b1598e
tree57ad02bc9c5959f00ac67699af704d991244d77f
parent5166d027308f4cf694f5cff1c0670b6ff622c226
gnu: bootstrap: Cache the 'bootstrap-executable' origins.

This reduces the number of lookups in the 'add-data-to-store' cache from
2705 to 2685 (hit rate: 10% to 9%) when running:

  GUIX_PROFILING=add-data-to-store-cache guix build libreoffice -nd

* gnu/packages/bootstrap.scm (raw-build)[->store]: Use 'lower-object'
instead of 'origin->derivation'.  This allows the origin-to-derivation
mapping to be cached.
gnu/packages/bootstrap.scm