1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

Move empty attrset optimisation

This commit is contained in:
Eelco Dolstra 2022-01-04 19:23:11 +01:00
parent ca5baf2392
commit 17daec0b83
3 changed files with 5 additions and 8 deletions

View file

@ -413,6 +413,7 @@ EvalState::EvalState(
, sSelf(symbols.create("self"))
, sEpsilon(symbols.create(""))
, repair(NoRepair)
, emptyBindings(0)
, store(store)
, buildStore(buildStore ? buildStore : store)
, regexCache(makeRegexCache())
@ -454,8 +455,6 @@ EvalState::EvalState(
}
}
vEmptySet.mkAttrs(allocBindings(0));
createBaseEnv();
}