Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-58

org.apache.axiom.om.impl.util.OMSerializerUtil.isSetPrefixBeforeStartElement() doing property lookup on every invocation - performance problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.7
    • 1.2.8
    • None
    • None

    Description

      org.apache.axiom.om.impl.util.OMSerializerUtil.isSetPrefixBeforeStartElement() has code that checks for the property javax.xml.stream.XMLStreamWriter.isSetPrefixBeforeStartElement on the XMLStreamWriter property that is passed in to the method. We have run tests that run through this code path and have noticed performance issues due to the method checking the property on every method invocation.
      Is there anyway that the value could be cached rather than doing the lookup each time ? And similarly, if the property isn't found, could the writer.getNamespaceContext() result be cached so that we just do the check once ?

      Attachments

        Issue Links

          Activity

            People

              scheu@us.ibm.com Rich Scheuerle
              tmitchell Tim Mitchell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: