You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running performance benchmarks of ethereum code, I have discovered a significant amount of time is consumed by trace logging, even when the trace logging is not enabled.
While running performance benchmarks of ethereum code, I have discovered a significant amount of time is consumed by trace logging, even when the trace logging is not enabled.
By cpuprofile, 2% of my runtime is consumed by:
In the source:
https://github.com/ethereum/go-ethereum/blob/v1.12.2/log/logger.go#L185
Actual behaviour
The ethereum logging generates expensive stacktraces on every log.Trace() call, even when the trace logging is disabled.
Expected behaviour
The stacktrace should be generated only when the log is not going to be dropped.
System information
Commit hash : 25733a4
The text was updated successfully, but these errors were encountered: