Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNWIzZTMzYmJl...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16047?atlOrigin=eyJpIjoiNWIzZT...
) HHH-16047 (
https://hibernate.atlassian.net/browse/HHH-16047?atlOrigin=eyJpIjoiNWIzZT...
) Allow reusing of FlushEntityEvent instances (
https://hibernate.atlassian.net/browse/HHH-16047?atlOrigin=eyJpIjoiNWIzZT...
)
Issue Type: Improvement Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Created: 16/Jan/2023 02:42 AM Priority: Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
FlushEntityEvent are a major source of allocations, especially in scenarios with multiple
entities being flushed as there’s a new event for each object needing stored.
Performance analysis has shown that such event instances are unlikely to be optimised by
the JVM, as they escape into non-trivial code paths.
Some other events already have a “reuse” mechanism; I recall we avoided it for flush
events because of concerns about recursive needs but we can still reuse them while
ensuring we don’t reuse instance in case of recursion as this seems detectable.
(
https://hibernate.atlassian.net/browse/HHH-16047#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16047#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 )