OpenJPA
  1. OpenJPA
  2. OPENJPA-1548

Miscellaneous ClassMetaData performance improvements

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta3
    • Component/s: performance
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Rick Curtis added a comment -

        Attaching a modified unit test that I was using as a micro benchmark.

        Pre change – 2.023 sec
        Post change – 1.319 sec

        Show
        Rick Curtis added a comment - Attaching a modified unit test that I was using as a micro benchmark. Pre change – 2.023 sec Post change – 1.319 sec
        Hide
        Rick Curtis added a comment -

        Committed revision 918167 to trunk.

        Show
        Rick Curtis added a comment - Committed revision 918167 to trunk.

          People

          • Assignee:
            Rick Curtis
            Reporter:
            Rick Curtis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development