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

Optimize instance selection performance #1363

Merged
merged 5 commits into from
Sep 2, 2024
Merged

Conversation

qnnn
Copy link
Contributor

@qnnn qnnn commented Jul 21, 2024

Each time instance selection is performed during a request, the ObjectProvider#getIfAvailable method is called, and its reflection implementation causes some CPU consumption.

@OlgaMaciaszek OlgaMaciaszek self-assigned this Aug 23, 2024
@OlgaMaciaszek OlgaMaciaszek added this to the 4.2.0-M2 milestone Aug 23, 2024
Copy link
Collaborator

@OlgaMaciaszek OlgaMaciaszek left a comment

Choose a reason for hiding this comment

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

Hello @qnnn. Thanks for the PR. It's a neat optimisation. Please add your full name and surname with @author tag to the javadocs of all the classes you've modified. Please update the dates in the license docs to 2012-2024.

@qnnn
Copy link
Contributor Author

qnnn commented Aug 24, 2024

@OlgaMaciaszek Thanks! I've completed as requested.

@qnnn qnnn requested a review from OlgaMaciaszek August 26, 2024 05:01
@OlgaMaciaszek OlgaMaciaszek merged commit 78d884c into spring-cloud:main Sep 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants