diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-19T14·49+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-19T14·49+0200 |
commit | 5b58991a71d15123c010bbbd7f08530dbc31173f (patch) | |
tree | 3cec3413ee43ddd8b46b950022e0741a7c166fd7 /src/nix-instantiate | |
parent | 0342eb170500f726f11269d26a1f34cded5d3676 (diff) |
Store Attrs inside Bindings
This prevents a double allocation per attribute set.
Diffstat (limited to 'src/nix-instantiate')
-rw-r--r-- | src/nix-instantiate/nix-instantiate.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc index 7a38f2ac4269..6bd1a9d6ca32 100644 --- a/src/nix-instantiate/nix-instantiate.cc +++ b/src/nix-instantiate/nix-instantiate.cc @@ -159,8 +159,7 @@ int main(int argc, char * * argv) EvalState state(searchPath); state.repair = repair; - Bindings autoArgs; - evalAutoArgs(state, autoArgs_, autoArgs); + Bindings & autoArgs(*evalAutoArgs(state, autoArgs_)); if (evalOnly && !wantsReadWrite) settings.readOnlyMode = true; |