Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2292

Reduce object allocations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 2.2.1.1, 2.3.0
    • 2.2.2, 2.2.1.1, 2.3.0
    • jdbc, performance
    • None

    Description

      While doing some performance analysis we have found that we can reduce object allocations a number of places in the code base.

      • In JDBCStoreManager we can create a simple pool(list) of CancelPreparedStatement/CancelStatement.
      • BrokerImpl.initializeOperatingSet, use a java.util.IdentityHashMap rather than org.apache.commons.collections.map.IdentityMap.IdentityMap.

      Attachments

        Activity

          People

            curtisr7 Richard G. Curtis
            curtisr7 Richard G. Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: