diff options
author | pennae <github@quasiparticle.net> | 2022-01-12 18:08:48 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-01-13 13:58:33 +0100 |
commit | 1bebb1095a122d4741c4ed9cd9cb19f08753872b (patch) | |
tree | 56d34b59cfc65c0e272a00a6a58de03c2c858ba8 /src/libexpr/eval.hh | |
parent | 44c92a1667ce829518178a77a9de0a53609d284f (diff) |
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.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 89814785e..348a1b291 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -80,7 +80,8 @@ public: sContentAddressed, sOutputHash, sOutputHashAlgo, sOutputHashMode, sRecurseForDerivations, - sDescription, sSelf, sEpsilon; + sDescription, sSelf, sEpsilon, sStartSet, sOperator, sKey, sPath, + sPrefix; Symbol sDerivationNix; /* If set, force copying files to the Nix store even if they |