guix-devel/guix
Ludovic Courtès b3e2a5af9f build-system/python: Memoize the results of 'package-with-python2'.
Fixes <http://bugs.gnu.org/21675>.
Reported by Cyril Roelandt <tipecaml@gmail.com>.

Before this change, the command:

  guix build python2-oslo.utils -n --no-substitutes

would take 17.5s.  After, it is down to 2.9s.
Likewise, the command:

  guix graph python2-bandit | grep python2-setuptools.*Helve| wc -l

would return 412 nodes before, all functionally equivalent, and returns
a single one now.

* guix/build-system/python.scm (package-with-explicit-python): Remove
  'p' parameter.  Change to return a one-argument memoizing procedure.
  (package-with-python2): Adjust accordingly.
2015-10-13 00:06:11 +02:00
..
build
build-system build-system/python: Memoize the results of 'package-with-python2'. 2015-10-13 00:06:11 +02:00
import
scripts
base32.scm
base64.scm
build-system.scm
config.scm.in
cpio.scm
cvs-download.scm
derivations.scm
download.scm
elf.scm
ftp-client.scm
gcrypt.scm
gexp.scm
git-download.scm
gnu-maintenance.scm
gnupg.scm
hash.scm
http-client.scm
licenses.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm
pk-crypto.scm
pki.scm
profiles.scm
records.scm
scripts.scm
search-paths.scm
serialization.scm
sets.scm
store.scm
svn-download.scm
tests.scm
ui.scm
utils.scm