-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Apply some micro-optimizations to logging setup code #17918
Conversation
hum let me qualify that :) I said it's sometimes better because the I just glanced at it though so I'm not sure - just making sure what I said isn't misunderstood :) |
BTW a great way to make it easy for a reviewer to actually see the refactoring will be beneficial is to use methodhandles, as they won't hide capturing lambdas. Also if you can't crack the puzzle with methodhandles, it's a hint that you're needing to allocate something else for context... so I really like them |
I took a look at what |
core/runtime/src/main/java/io/quarkus/runtime/logging/LoggingSetupRecorder.java
Outdated
Show resolved
Hide resolved
* Replace map iteration using entrySet with forEach (@Sanne has mentioned that this is much faster) * Get rid of lambdas * Don't allocate various datastructures unless necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved pending CI (I didn't test it!)
Thanks @geoand !
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building ff0064a
|
Thanks for checking! |
I took this up when looking at #17914