about summary refs log tree commit diff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-04-13T14·34+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-04-13T14·34+0000
commit816f9c0f6fae0229961bb573dfa0f75ff42c14eb (patch)
tree527a729253e5fa6a393fc1fe9a891d802a12aa7e /src/libexpr/eval.cc
parent7d47498b5ea1ad4685bad954e5407f628f7f5595 (diff)
* Use std::tr1::unordered_set instead of std::set for the symbol
  table.  This gives a 10% speed increase on `nix-instantiate
  /etc/nixos/nixos -A system --readonly-mode'.

Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index fbd618d4173b..0505c5b2420c 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -1058,6 +1058,7 @@ void EvalState::printStats()
     printMsg(v, format("  stack space per eval() level: %1% bytes") % ((&x - deepestStack) / (float) maxRecursionDepth));
     printMsg(v, format("  values allocated: %1%") % nrValues);
     printMsg(v, format("  environments allocated: %1%") % nrEnvs);
+    printMsg(v, format("  symbols in symbol table: %1%") % symbols.size());
 }