~ruther/guix-local

90354e34e386b21451e0b6dab87ff5d9e81a94ae — Ludovic Courtès 8 years ago eb1150c
derivations: Don't memoize 'derivation-hash'.

This has little or no run-time impact and slightly reduces the memory
footprint.

* guix/derivations.scm (derivation-hash): Replace 'mlambda' with
'lambda'.
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/derivations.scm
M guix/derivations.scm => guix/derivations.scm +1 -1
@@ 651,7 651,7 @@ name of each input with that input's hash."
                        #f)))))

(define derivation-hash            ; `hashDerivationModulo' in derivations.cc
  (mlambda (drv)
  (lambda (drv)
    "Return the hash of DRV, modulo its fixed-output inputs, as a bytevector."
    (match drv
      (($ <derivation> ((_ . ($ <derivation-output> path