Skip to content

Conversation

@fabianbs96
Copy link
Member

The IF_LOG_ENABLED macro only checks for the logger being enabled, not for the enabled log level. This leads to drastical performance drops in the IDESolver when enabling logging -- even if just INFO log is enabled.

This PR fixes this issue by providing a new macro IF_LOG_LEVEL_ENABLED that additionally checks for the enabled log level.
Additionally, the logger is slightly refactored

@fabianbs96 fabianbs96 self-assigned this Nov 16, 2023
@fabianbs96 fabianbs96 requested a review from MMory as a code owner November 16, 2023 16:17
Copy link
Member

@MMory MMory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, as discussed recently, thanks!

@fabianbs96 fabianbs96 merged commit 3aca432 into development Nov 25, 2023
@fabianbs96 fabianbs96 deleted the f-ImproveLoggerPerformance branch November 25, 2023 11:11
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.

3 participants