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