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

Convert internal serdes from beans to ordinary classes #761

Merged
merged 3 commits into from
Feb 8, 2024
Merged

Conversation

dstepanov
Copy link
Contributor

This should improve the startup.

I have extracted all of the serdes defined in the DefaultSerdeRegistry into own package.

@CLAassistant
Copy link

CLAassistant commented Feb 7, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@graemerocher graemerocher left a comment

Choose a reason for hiding this comment

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

Are there some JMH benchmarks that show the improvement in startup time vs the old way?

@dstepanov
Copy link
Contributor Author

I don't see much of the improvement. But having fewer beans might help.

Copy link

sonarqubecloud bot commented Feb 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

2 New Bugs (required ≤ 0)
3 New Critical Issues (required ≤ 0)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

.iterator();
// pick the bean with the highest priority
final Iterator<BeanDefinition<T>> i = candidates.stream()
.sorted((bean1, bean2) -> {
Copy link
Member

Choose a reason for hiding this comment

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

You can use Comparator.comparingInt

@Singleton
@Primary
@BootstrapContextCompatible
@Internal
Copy link
Member

Choose a reason for hiding this comment

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

breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those are added as beans in LegacyBeansFactory

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.

4 participants