Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOTAyMzkxY2Vj...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-15651?atlOrigin=eyJpIjoiOTAyMz...
) HHH-15651 (
https://hibernate.atlassian.net/browse/HHH-15651?atlOrigin=eyJpIjoiOTAyMz...
) EntityEntryContext#reentrantSafeEntityEntries could use some performance optimisations (
https://hibernate.atlassian.net/browse/HHH-15651?atlOrigin=eyJpIjoiOTAyMz...
)
Issue Type: Improvement Affects Versions: 6.2.0, 6.1.6 Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 01/Nov/2022 09:18 AM Labels: performance Priority:
Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The method org.hibernate.engine.internal.EntityEntryContext#reentrantSafeEntityEntries is
allocating a defensive copy of the data structure for iteration, but this has been shown
as not being very efficient in terms of memory allocations.
We should explore alternatives, especially as I’ve noticed since ORM 6 this method is now
only used by a single path: the Session#clear() method. Hopefully that simplifies things.
(
https://hibernate.atlassian.net/browse/HHH-15651#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15651#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:a877796 )