Skip to content

Optimize instance selection performance#1363

Merged
OlgaMaciaszek merged 5 commits intospring-cloud:mainfrom
qnnn:main
Sep 2, 2024
Merged

Optimize instance selection performance#1363
OlgaMaciaszek merged 5 commits intospring-cloud:mainfrom
qnnn:main

Conversation

@qnnn
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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