]
Sanne Grinovero updated HHH-6862:
---------------------------------
Attachment: OGM-Map-5 - after HHH-6862.png
OGM-Map-4 - before HHH-6862.png
I've added two benchmark results to compare to see why this patch was worth it.
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
Attachments: OGM-Map-4 - before HHH-6862.png, OGM-Map-5 - after HHH-6862.png
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: