[
https://issues.apache.org/jira/browse/OPENJPA-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Curtis updated OPENJPA-1548:
---------------------------------
Attachment: OPENJPA-1548.test.patch
Attaching a modified unit test that I was using as a micro benchmark.
Pre change -- 2.023 sec
Post change -- 1.319 sec
> Miscellaneous ClassMetaData performance improvements
> ----------------------------------------------------
>
> Key: OPENJPA-1548
> URL: https://issues.apache.org/jira/browse/OPENJPA-1548
> Project: OpenJPA
> Issue Type: Improvement
> Components: performance
> Reporter: Rick Curtis
> Assignee: Rick Curtis
> Attachments: OPENJPA-1548.test.patch
>
>
> When doing some performance testing I found that I was able to marginally
> improve performance by refactoring a couple methods in ClassMetaData to allow
> the JVM to better optimize code paths.
> Also, I found that we calculate the hash code every time
> ClassMetaData.hashCode is called, but it will never change.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.