-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracing std::io::err performance #859
Comments
Hey @dmolokanov 👋 Are you calling If you still see similar differences with To rule that out you can try replace your |
There should also be some performance improvements for filtering coming up in the next |
@KodrAus
@hawkw Do you have any (rough?) estimates when performance improvements will land? |
Hopefully today or tomorrow --- the branch is #853. Although, after taking a closer look at your benchmark code, it looks like these changes probably won't effect this specific case, since there are no events below the I took a quick look at tracing/tracing-subscriber/src/fmt/fmt_layer.rs Lines 686 to 711 in aa5c523
My guess is that the performance difference in this case is either due to |
Question
Version
tracing v0.1.15
Platform
Linux 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Crates
Description
During a performance investigation, I noticed that
env_logger
almost twice faster thantracing
. When running following code:I get these results
Do you have any guidance to improve performance? Maybe some configuration/flag that can help?
The text was updated successfully, but these errors were encountered: