Skip to content
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

Improve performance of publication #44

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented May 10, 2024

Acquiring a logger inside a loop causes repeated stack traversals. The log event generally does not need to have a category object, so we populate it lazily instead. Eliminate repeated construction of filter objects, and inline the filter checking logic.

Acquiring a logger inside a loop causes repeated stack traversals.
The log event generally does not need to have a category object, so we populate it lazily instead.
Eliminate repeated construction of filter objects, and inline the filter checking logic.
@ivassile
Copy link

@dmlloyd Can we merge this PR and tag version 1.3.1? We have to include it in the upcoming EAP 7.4.18. Thanks!

@dmlloyd
Copy link
Member Author

dmlloyd commented May 21, 2024

WDYT @jamezp?

@jamezp jamezp merged commit 30e0651 into jboss-logging:main May 21, 2024
4 checks passed
@dmlloyd dmlloyd deleted the stack branch May 21, 2024 14:59
@jamezp
Copy link
Member

jamezp commented May 21, 2024

Sorry, I completely spaced this. It's merged, do we need a release too?

@ivassile
Copy link

Sorry, I completely spaced this. It's merged, do we need a release too?

Yes please.

@jamezp
Copy link
Member

jamezp commented May 21, 2024

@ivassile Done https://github.com/jboss-logging/log4j-jboss-logmanager/releases/tag/1.3.1.Final

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