mirror of
https://github.com/NixOS/nix
synced 2025-06-26 11:41:15 +02:00
cache more often-used symbols for primops
there's a few symbols in primops we can create once and pick them out of EvalState afterwards instead of creating them every time we need them. this gives almost 1% speedup to an uncached nix search.
This commit is contained in:
parent
44c92a1667
commit
1bebb1095a
3 changed files with 17 additions and 12 deletions
|
@ -425,6 +425,11 @@ EvalState::EvalState(
|
|||
, sDescription(symbols.create("description"))
|
||||
, sSelf(symbols.create("self"))
|
||||
, sEpsilon(symbols.create(""))
|
||||
, sStartSet(symbols.create("startSet"))
|
||||
, sOperator(symbols.create("operator"))
|
||||
, sKey(symbols.create("key"))
|
||||
, sPath(symbols.create("path"))
|
||||
, sPrefix(symbols.create("prefix"))
|
||||
, repair(NoRepair)
|
||||
, emptyBindings(0)
|
||||
, store(store)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue