From 0bc468f195e37a8a5f4f8b36ae6c92459e8ca652 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 22 Apr 2010 15:08:09 +0000 Subject: * Simplify the implementation of `with'. This gives a 7% speedup in evaluating the NixOS system configuration. --- src/libexpr/eval.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 2726fd971d..6912e22887 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]; }; -- cgit 1.4.1