diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-10-27 19:19:14 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-10-27 23:05:00 +0100 |
commit | d727a9343d861cf775645df8be5bfefd43d6c6f0 (patch) | |
tree | ee0e59f68b42099828f3677b1c040fd956a4b4a2 | |
parent | f5fca9a82cec76d2e10b8b6c96be2dd79f638ba0 (diff) |
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.scm | 2 |
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 |