guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/11: derivations: Don't memoize 'derivation->bytevector'.


From: guix-commits
Subject: 06/11: derivations: Don't memoize 'derivation->bytevector'.
Date: Sun, 27 Oct 2019 18:13:08 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit d727a9343d861cf775645df8be5bfefd43d6c6f0
Author: Ludovic Courtès <address@hidden>
Date:   Sun Oct 27 19:19:14 2019 +0100

    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'.
---
 guix/derivations.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/derivations.scm b/guix/derivations.scm
index 140c22b..706c650 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]