Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNDhiOTczNzMz...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-15779?atlOrigin=eyJpIjoiNDhiOT...
) HHH-15779 (
https://hibernate.atlassian.net/browse/HHH-15779?atlOrigin=eyJpIjoiNDhiOT...
) Avoid stateful lambdas in hot processing of JdbcValuesResultSetImpl (
https://hibernate.atlassian.net/browse/HHH-15779?atlOrigin=eyJpIjoiNDhiOT...
)
Issue Type: Improvement Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 29/Nov/2022 04:51 AM Fix Versions: 6.2.0, 6.1.6
Priority: Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The performance team identified an issue in JdbcValuesResultSetImpl and how the lambda’s
in this class are being optimised by the JVM.
We’re not yet sure exactly of why the JVM is not optimising these (as at first glance it
should be able to) and they’ll investigate further about that, but it seems we can easily
bypass the problem by avoiding the use of the Advancer functional interface.
In addition this also allows us to avoid allocating at runtime, as it turns out that some
of these Advancer implementations were needing to capture state (e.g. processPosition
method needing to carry the position variable).
(
https://hibernate.atlassian.net/browse/HHH-15779#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15779#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:4037f92 )