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

Micro performance improvements #243

Merged
merged 9 commits into from
Jan 12, 2021
Merged

Micro performance improvements #243

merged 9 commits into from
Jan 12, 2021

Conversation

Sanne
Copy link
Contributor

@Sanne Sanne commented Jan 11, 2021

Most of these commits are small refactorings and should be semantically equivalent to the current code, but aim at overall savings in memory allocation rates.

Using Techempower, this PR improves the TLAB allocation rate of the Quarkus benchmark by about ~12% total when using the combination RestEasy Reactive + Hibernate Reactive.

Overall, it's all about avoiding allocations for short lived objects; in particular allocating iterators on the HashSet instances of ThreadContextProviderPlan is very hot, and performance results suggest the JIT wasn't able to apply escape analysis optimisations in these cases.

I'm not at all familiar with the codebase: code to be patched has been identified via profiling.

@FroMage
Copy link
Contributor

FroMage commented Jan 12, 2021

Added a javadoc fix

@FroMage FroMage merged commit 55b1bc4 into smallrye:master Jan 12, 2021
@FroMage
Copy link
Contributor

FroMage commented Jan 12, 2021

Thanks @Sanne !

@Sanne Sanne deleted the Performance branch January 12, 2021 09:55
@Sanne
Copy link
Contributor Author

Sanne commented Jan 12, 2021

thanks!

@FroMage FroMage added this to the 1.1.0 milestone Jan 19, 2021
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.

2 participants