-
Notifications
You must be signed in to change notification settings - Fork 40.5k
-
Notifications
You must be signed in to change notification settings - Fork 40.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
Look for optimizations in AutoConfigurationImportSelector #15495
Comments
I'm not sure that there's much to be gained here in a typical app that uses Can you give us some code to run where it's taking 5% of startup and will appear as a hotspot? |
10ms is less than 5% of the app I was running, so probably I overstated it - I made other changes, but this was the biggest one. The hotspot was in In a |
That's really frustrating. Precision is vital here otherwise we're going to waste time chasing benefits that don't exist.
That method takes < 1ms for me. As I said above, the main cost that I see is in
To honour the |
OK. So probably there is nothing further to do here for now. There was a real gain in the prototype, but it can't be translated into a general benefit for Spring Boot. |
A regression in performance in spring-projects-experimental/spring-init was traced to a hostspot in
AutoConfigurationImportSelector.getAutoConfigurationEntry()
- once we prevented that method from being called when we already knew the imports, we were able to save nearly 5% of startup time in a micro app.The text was updated successfully, but these errors were encountered: