mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
EvalState: Don't maintain stats by default
These counters are extremely expensive in a multi-threaded program. For instance, disabling them speeds up evaluation of the NixOS/nix/2.21.2 from 32.6s to 17.8s.
This commit is contained in:
parent
8d257f5510
commit
e8f951289f
6 changed files with 94 additions and 20 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
unsigned long Expr::nrExprs = 0;
|
||||
Counter Expr::nrExprs;
|
||||
|
||||
ExprBlackHole eBlackHole;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue