Skip to content

log OPTIMIZE skip no-op messages entirely#2369

Merged
michalvasko merged 1 commit intoCESNET:develfrom
irfanHaslanded:irfan/opt-union
Mar 19, 2025
Merged

log OPTIMIZE skip no-op messages entirely#2369
michalvasko merged 1 commit intoCESNET:develfrom
irfanHaslanded:irfan/opt-union

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