Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNTBlNWUzN2Nl...
) / Task (
https://hibernate.atlassian.net/browse/HHH-16884?atlOrigin=eyJpIjoiNTBlNW...
) HHH-16884 (
https://hibernate.atlassian.net/browse/HHH-16884?atlOrigin=eyJpIjoiNTBlNW...
) Improve efficiency of UpdateCoordinatorStandard in tracking tables to be updated (
https://hibernate.atlassian.net/browse/HHH-16884?atlOrigin=eyJpIjoiNTBlNW...
)
Issue Type: Task Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 03/Jul/2023 07:18 AM Fix Versions: 6.3.0 Labels:
performance Priority: Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The current implementation of `UpdateCoordinatorStandard` leads to an high amount of
allocations, as it attempts to track which tables are going to be updated by using 4
different HashSet implementations.
These 4 HashSet instances are being allocated for each update operation, and each entity
instance within the overall update; some of them will remain empty.
Also noticeable, each Table within this scope is identified by a unique, short number. I’m
planning to introduce a small and simple wrapper around BitSet to replace these sets.
(
https://hibernate.atlassian.net/browse/HHH-16884#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16884#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#100228- sha1:e911e2c )