1
1
Fork 0
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:
Eelco Dolstra 2025-08-25 20:06:00 +02:00 committed by Jörg Thalheim
parent 8d257f5510
commit e8f951289f
6 changed files with 94 additions and 20 deletions

View file

@ -11,7 +11,7 @@
namespace nix {
unsigned long Expr::nrExprs = 0;
Counter Expr::nrExprs;
ExprBlackHole eBlackHole;