[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6862) Reuse cached entryArray of IdentityMap in StatefulPersistenceContext as much as possible
Strong Liu (JIRA)
noreply at atlassian.com
Wed Nov 30 01:32:19 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44467#comment-44467 ]
Strong Liu commented on HHH-6862:
---------------------------------
I added one more commit.
now, only linked identity hash map is provided by _IdentityMap_
so, we can find a better way to write a concurrent modification safe linked identity hash map to replace _IdentityMap_
> Reuse cached entryArray of IdentityMap in StatefulPersistenceContext as much as possible
> ----------------------------------------------------------------------------------------
>
> Key: HHH-6862
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6862
> Project: Hibernate Core
> Issue Type: Improvement
> Reporter: Sanne Grinovero
> Assignee: Sanne Grinovero
> Priority: Minor
> Fix For: 4.0.0.next
>
>
> There are different options to iterate the containers of a StatefulPersistenceContext, and these iteration operations happen frequently.
> Usage of IdentityMap is able to cache cache the array it creates to provide a safe iteration during modifications, so I've collapsed all usage of the PersistenceContext to use less different iteration approaches, and this resulted in a small performance improvement and some code simplification.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list