Skip to content

Conversation

@LorenzSchumann
Copy link

This code optimizes thread performance by checking if the logging level is enabled before proceeding with expensive operations. The guard clause in EvolvingLog prevents unnecessary blocking when multiple threads call logging methods that won't actually output anything due to the current log level configuration. This reduces contention on the synchronized updateLog() method when logging is disabled for that level.

This code optimizes thread performance by checking if the logging level is enabled before proceeding with expensive operations. The guard clause in EvolvingLog prevents unnecessary blocking when multiple threads call logging methods that won't actually output anything due to the current log level configuration. This reduces contention on the synchronized updateLog() method when logging is disabled for that level.
@CLAassistant
Copy link

CLAassistant commented Aug 28, 2025

CLA assistant check
All committers have signed the CLA.

@LorenzSchumann
Copy link
Author

Dear @piers-williams
I saw that you commented on some PRs today. Would you be so kind as to give me some feedback on this or on the issue?

@piers-williams
Copy link
Contributor

Dear @piers-williams I saw that you commented on some PRs today. Would you be so kind as to give me some feedback on this or on the issue?

I've logged the ticket in my queue to look at

@LorenzSchumann
Copy link
Author

Dear @piers-williams I saw that you commented on some PRs today. Would you be so kind as to give me some feedback on this or on the issue?

I've logged the ticket in my queue to look at

@piers-williams Any update on this?

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