OpenJPA
  1. OpenJPA
  2. OPENJPA-2151

Improve the performance of StateManagerImpl.initialize

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.0
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: kernel
    • Labels:
      None

      Description

      While running some performance tests I found that StateManagerImpl.initialize could be improved through caching some additional meta data.

      I also found another improvement that could be added to the PCState.initialize(...) transition. As far as I can tell, the PCState transition(s) do not have a concept of what state they are coming from and in some instances we are doing work unnecessary work. For example, when finding an Entity with an active transaction, we have all clean bitsets, but when we call PCleanState.initialize(...) the state doesn't know that this is a 'fresh' instance and we don't need to touch the dirty bitset.

        Issue Links

          Activity

          Hide
          Rick Curtis added a comment -

          Committed changes to trunk and 2.2.x.

          Show
          Rick Curtis added a comment - Committed changes to trunk and 2.2.x.
          Hide
          Rick Curtis added a comment -

          Attaching a patch which outlines the proposed changes.

          Show
          Rick Curtis added a comment - Attaching a patch which outlines the proposed changes.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development