Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6384232

Significant performance penalty obtaining/reseting the XMLStreamReader instance

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: beta
    • Fix Version/s: 5.0
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      generic

      Description

      A performace evalutaion of JAXB unmarshalling shows that obtaining/reseting
      an instance of com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(...)
      is significate. It is 3/4 of execution time.


      Module jaxb-performance in CVS repository :pserver:redcvs.red.iplanet.com:/sw/wpts
      contains the apps and performace reporting tool (EJP) used for the evalutaion.

      Sun stream code performace was compared to Xpp3 based MXparser.

      I have compiled the Japex reports and relevant EJP performance reports in
      the attached zip file. Files Xpp3PointDriver.html jaxbPointDriver_p1.html
      contain the method level performace numbers for the P1 case. File
      jaxbPointDriver_p1.html shows the time spend in each method of the
      createXMLStreamReader call tree.




      I commented out all the if (DEBUG_*) stmts in XMLEntityReaderImpl and
      ran the performance tests above. In all cases execution time on
      com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(...) dropped
      from 3 MS to 2 MS.

        Attachments

          Activity

            People

            • Assignee:
              joehw Joe Wang
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: