You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/04/23 20:25:21 UTC

[jira] Resolved: (WSCOMMONS-325) org.apache.axiom.om.impl.util.OMSerializerUtil.isSetPrefixBeforeStartElement() doing property lookup on every invocation - performance problem

     [ https://issues.apache.org/jira/browse/WSCOMMONS-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle resolved WSCOMMONS-325.
--------------------------------------

    Resolution: Fixed

Committed revision 650980.

Tim, please try this out and let me know if you are getting the expected performance boost.



> org.apache.axiom.om.impl.util.OMSerializerUtil.isSetPrefixBeforeStartElement() doing property lookup on every invocation - performance problem
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-325
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-325
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Tim Mitchell
>            Assignee: Rich Scheuerle
>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.