Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2YyYTVlYWY3...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16051?atlOrigin=eyJpIjoiM2YyYT...
) HHH-16051 (
https://hibernate.atlassian.net/browse/HHH-16051?atlOrigin=eyJpIjoiM2YyYT...
) Avoid stateful lambdas on invocations of Stack#findCurrentFirst (
https://hibernate.atlassian.net/browse/HHH-16051?atlOrigin=eyJpIjoiM2YyYT...
)
Issue Type: Improvement Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 16/Jan/2023 12:37 PM Fix Versions: 6.2.0 Labels:
performance Priority: Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We have a number of cases in which findCurrentFirst on the internal Stack implementation
need to pass an additional parameter, leading to functions passed to it needing to be
stateful (aka “capturing lambdas”).
For efficiency reasons it would be much better to avoid such lambdas and expose instead a
specialized method which allows passing an additional parameter, and consume it again by
definig a BiFunction instead of a Function.
(
https://hibernate.atlassian.net/browse/HHH-16051#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16051#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#100214- sha1:bdfa1eb )