size: Optimize dependency size computation.
authorLudovic Courtès <ludo@gnu.org>
Sat, 6 Apr 2019 12:52:56 +0000 (14:52 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 7 Apr 2019 09:36:00 +0000 (11:36 +0200)
commit1199da08aa76f7bba57692b4b8e9272fd305e9f2
treef82aaace2b120d3868f22e38a192b99f75a79103
parent32c055fd32059cbe0ab6f94eb3ef3a8c7e49dc92
size: Optimize dependency size computation.

This reduces 'guix size' run time by ~4% here:

  items="$(guix build icecat inkscape emacs libreoffice)"
  guix size $items

* guix/scripts/size.scm (store-profile): Define 'size-table' and use it
to lookup the size of ITEM in 'dependency-size'.
guix/scripts/size.scm