-
Notifications
You must be signed in to change notification settings - Fork 851
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
[BUG]DisplayEpollWatch causes a 20% increase in CPU usage #3030
Comments
Why is that a bug? This log is exclusively for development support to track any problems, and as the name shows, it's a "heavy" logging and it is known that this will burden the performance, by definition. If you want, apply this below patch - it changes this string into stringstream so that this is displayed directly buffer-to-buffer, without involving a string intermediately. Maybe this will improve the performance a bit.
|
|
Describe the bug
When I enable the macro IF_HEAVY_LOGGING.
The string processing here will increase the usage by 20%, and I believe it’s not worth it.
IF_HEAVY_LOGGING(string tracking = " TRACKING: " + ed.DisplayEpollWatch());
The text was updated successfully, but these errors were encountered: