Skip to content

log OPTIMIZE skip no-op messages entirely #2369

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

irfanHaslanded
Copy link
Contributor

There are cases where logging is turned off, for example when finding the correct type of a union member.

It is wasteful to format and print the log message, only to free it without using it at all.

Learn whether a log message will be used before creating it.

There are cases where logging is turned off, for example when finding
the correct type of a union member.

It is wasteful to format and print the log message, only to free it
without using it at all.

Learn whether a log message will be used before creating it.
@michalvasko
Copy link
Member

Okay, I guess, but I seriously doubt this has any noticeable impact on the performance.

@michalvasko michalvasko merged commit d4de9e6 into CESNET:devel Mar 19, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants