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/01/14 23:46:34 UTC
[jira] Commented: (WSCOMMONS-294) Inefficient string concatenation
in OMElementImpl#getText
[ https://issues.apache.org/jira/browse/WSCOMMONS-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558823#action_12558823 ]
Rich Scheuerle commented on WSCOMMONS-294:
------------------------------------------
Thanks for the patch. I will analyze and commit it on 1/15.
Rich Scheuerle
> Inefficient string concatenation in OMElementImpl#getText
> ---------------------------------------------------------
>
> Key: WSCOMMONS-294
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-294
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Andreas Veithen
> Assignee: Rich Scheuerle
> Attachments: Test.java, wscommons-294.patch.txt
>
>
> The getText method in org.apache.axiom.om.impl.llom.OMElementImpl uses the plus operator to do repetitive string concatenations. This leads to rapid performance degradation when the element contains a large number of text nodes. This may happen in particular when the XMLStreamReader is not coalescing. I believe that this is the root cause of the problem described in the following thread:
> http://www.nabble.com/Process-SOAP-message-containg-XHTML-to14804315.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org