summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-02-21 12:01:24 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-02-21 12:01:24 +0000
commit0a84137c4512e0a31802e94de7795e04f8ee2198 (patch)
tree8eca4837b1dc0fa0e8e9376fd3e8eb0a5268b759 /configure.ac
parent0ed89c569f95d884fb8107a555f8a03672a0fffd (diff)
downloadguix-0a84137c4512e0a31802e94de7795e04f8ee2198.tar.gz
* checkVarDefs: don't check in closed terms, which don't have
  undefined variables by definition.  This matters for the
  implementation of "with", which does a call to checkVarDefs to see
  if the body of the with has no undefined variables.  (It can't be
  checked at parse time because you don't know which variables are in
  the "with" attribute set.)  If we check closed terms, then we check
  not just the with body but also the substituted terms, which are
  typically very large.  This is the cause of the poor nix-env
  performance on Nixpkgs lately.  It didn't happen earlier because
  "with" wasn't used very often in the past.

  This fix improves nix-env performance roughly 60x on current Nixpkgs.
  nix-env -qa is down from 29.3s to 0.5s on my laptop, and nix-env -qa
  --out-path is down from 229s to 3.39s.  Not bad for a 1-line fix :-)

Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions