gnu: Improve memoization of 'package-with-bootstrap-guile'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 12 Oct 2019 12:42:36 +0000 (14:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 12 Oct 2019 13:18:25 +0000 (15:18 +0200)
commit099dbc4fd332d27a5010f17093f1d6b09d26212e
treebc24269f6ce1eeb9372ae16b9cfa48faedac73b6
parentd7e29a2b265a249d053f4763edd00e717ce8388d
gnu: Improve memoization of 'package-with-bootstrap-guile'.

Before that, the command:

  GUIX_PROFILING=memoization guix build -e '(@@ (gnu packages commencement) gnu-make-final)' -nd

would show that 'package-with-bootstrap-guile' was called 2256
times (hit rate: 89%).  Now, it is called 745 times (hit rate: 85%).

"guix build libreoffice -nd" goes from 2.60s to 2.40s (-8%).

* gnu/packages/commencement.scm (gnu-make-final)
(coreutils-final, grep-final, sed-final, %final-inputs): Call
'package-with-bootstrap-guile' before 'package-with-explicit-inputs'.
gnu/packages/commencement.scm