mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
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'.
This commit is contained in:
parent
f5fca9a82c
commit
d727a9343d
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ (define (write-env-var env-var port)
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue