about summary refs log tree commit diff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-04-22T15·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-04-22T15·08+0000
commit0bc468f195e37a8a5f4f8b36ae6c92459e8ca652 (patch)
treef4057161b6bb181e2899dbe85816e68819327097 /src/libexpr/eval.hh
parentee0384fb966b7a9bd202fa6fb447788be30c4ce4 (diff)
* Simplify the implementation of `with'. This gives a 7% speedup in
  evaluating the NixOS system configuration.

Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 2726fd971d45..6912e22887fd 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -106,6 +106,7 @@ struct Value
 struct Env
 {
     Env * up;
+    unsigned int prevWith; // nr of levels up to next `with' environment
     Value values[0];
 };