-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
This disables the log reloading that was enabled by default. The problem is that the log reload implementation of `tracing` is using a lock to make the layer replaceable. This lock needs to be locked every time we need to check if a particular target is enabled (assuming the log level is high enough). This kills the performance when for example `sometarget=trace` logging is enabled.
Awesome, thank you @bkchr ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bot merge |
1 similar comment
bot merge |
Trying merge. |
Did we open an issue for this upstream? Even if they can't fix it easily it should at least be clearly documented in |
I did not open an issue for it. Depending on what you see as a fix, I think we could improve the performance of it. But I also realized later that we didn't had "parking_lot" enabled for |
This disables the log reloading that was enabled by default. The problem
is that the log reload implementation of
tracing
is using a lock tomake the layer replaceable. This lock needs to be locked every time we
need to check if a particular target is enabled (assuming the log level
is high enough). This kills the performance when for example
sometarget=trace
logging is enabled.polkadot companion: paritytech/polkadot#4037