mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
* Simplify the implementation of `with'. This gives a 7% speedup in
evaluating the NixOS system configuration.
This commit is contained in:
parent
ee0384fb96
commit
0bc468f195
4 changed files with 15 additions and 30 deletions
|
@ -106,6 +106,7 @@ struct Value
|
|||
struct Env
|
||||
{
|
||||
Env * up;
|
||||
unsigned int prevWith; // nr of levels up to next `with' environment
|
||||
Value values[0];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue