in org.hibernate.mapping.PersistentClass some 2 performance issues can be fixed
-------------------------------------------------------------------------------
Key: HHH-5920
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5920
Project: Hibernate Core
Issue Type: Improvement
Affects Versions: 3.6.1, 3.5.5, 3.3.2, 3.2.7, 3.1.3, 3.0.5
Reporter: Christoph Weißenborn
Attachments: org.hibernate.mapping.persistentclass.patch
3 performance issues in org.hibernate.mapping.PersistentClass:
1. The mappedClass is loaded again and again calling
ReflectHelper.classForName(className). The mapped class is not changed so it should be
hold as member variable.
2. Method getProperty(String, Iterator) uses a MappingException which is ignored in
getRecursiveProperty(String, Iterator). This makes the recursion more expensive than
required.
3. Method getProperty calls StringHelper.root( propertyName ) for every property. Simply
change the while in if do while.
A fix is provided as attachment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira