aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-10-27 19:19:14 +0100
committerLudovic Courtès <ludo@gnu.org>2019-10-27 23:05:00 +0100
commitd727a9343d861cf775645df8be5bfefd43d6c6f0 (patch)
treeee0e59f68b42099828f3677b1c040fd956a4b4a2
parentf5fca9a82cec76d2e10b8b6c96be2dd79f638ba0 (diff)
downloadpatches-d727a9343d861cf775645df8be5bfefd43d6c6f0.tar
patches-d727a9343d861cf775645df8be5bfefd43d6c6f0.tar.gz
derivations: Don't memoize 'derivation->bytevector'.
Its hit rate was only 8%. Removing it reduces heap size of "guix build libreoffice -nd" from 69MiB to 61MiB and the wall-clock time is unchanged. * guix/derivations.scm (derivation->bytevector): Change from 'mlambda' to 'lambda'.
-rw-r--r--guix/derivations.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm
index 140c22b620..706c650469 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -622,7 +622,7 @@ that form."
(display ")" port))))
(define derivation->bytevector
- (mlambda (drv)
+ (lambda (drv)
"Return the external representation of DRV as a UTF-8-encoded string."
(with-fluids ((%default-port-encoding "UTF-8"))
(call-with-values open-bytevector-output-port