diff options
author | pennae <github@quasiparticle.net> | 2022-01-02 00:46:43 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-01-14 14:04:17 +0100 |
commit | ad60dfde2af6bcdb77e50562a2f2b28107e28588 (patch) | |
tree | 1b52ea5daca47e4b9957887a067789e5baa83c31 /src/libexpr/eval-inline.hh | |
parent | c9fc975259e27220caeb4291f3dff453e65f1965 (diff) |
also cache split regexes, not just match regexes
gives about 1% improvement on system eval, a bit less on nix search.
# before
nix search --no-eval-cache --offline ../nixpkgs hello
Time (mean ± σ): 7.419 s ± 0.045 s [User: 6.362 s, System: 0.794 s]
Range (min … max): 7.335 s … 7.517 s 20 runs
nix eval --raw --impure --expr 'with import <nixpkgs/nixos> {}; system'
Time (mean ± σ): 2.921 s ± 0.023 s [User: 2.626 s, System: 0.210 s]
Range (min … max): 2.883 s … 2.957 s 20 runs
# after
nix search --no-eval-cache --offline ../nixpkgs hello
Time (mean ± σ): 7.370 s ± 0.059 s [User: 6.333 s, System: 0.791 s]
Range (min … max): 7.286 s … 7.541 s 20 runs
nix eval --raw --impure --expr 'with import <nixpkgs/nixos> {}; system'
Time (mean ± σ): 2.891 s ± 0.033 s [User: 2.606 s, System: 0.210 s]
Range (min … max): 2.823 s … 2.958 s 20 runs
Diffstat (limited to 'src/libexpr/eval-inline.hh')
0 files changed, 0 insertions, 0 deletions