-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Qute: reflection fallback value resolver optimization #43308
Conversation
|
Okay, I'll remove the label and let you folks decide :) |
did you tried to run it with |
independent-projects/qute/core/src/main/java/io/quarkus/qute/ReflectionValueResolver.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
The failure looks related... investigating. |
- add ValueResolver#getCachedResolver() so that reflection value resolver can optimize the cached resolver and save two concurrent hash map lookups and 2 MemberKey instances
4449c78
to
6941566
Compare
I fixed the problem related to the CI failure and also improved the benchmark but the results look very similar.
and for
And no big difference with quick and dirty test on my laptop (12th Gen Intel(R) Core(TM) i7-1270P, 12 cores). |
Status for workflow
|
In my case, probably due to the very high clock, the original lookup was a major scalability killer, but maybe it depends by a mix of number of cores and high frequency (my machine is stable clocked at 4.5 GHz on 32 cores) |
Oops, that's quite a difference ;-) |
I can observe ~ 20% higher throughput in the reflection value resolver benchmark (when compared to the main branch).
cc @franz1981