Skip to content
Snippets Groups Projects
Unverified Commit d727a934 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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'.
parent f5fca9a8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment