You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Chris Simmons (JIRA)" <xe...@xml.apache.org> on 2013/07/12 11:37:50 UTC

[jira] [Updated] (XERCESJ-1617) Minor optomization for NodeImpl.lookupNamespaceURI(String)

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

Chris Simmons updated XERCESJ-1617:
-----------------------------------

    Attachment: namespaceuri.txt

Patch to move the call to getPrefix() and getValue() inside the condition so that it only occurs for xmlns nodes.
                
> Minor optomization for NodeImpl.lookupNamespaceURI(String)
> ----------------------------------------------------------
>
>                 Key: XERCESJ-1617
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1617
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 2 Events)
>    Affects Versions: 2.11.0
>            Reporter: Chris Simmons
>            Priority: Trivial
>              Labels: patch
>         Attachments: namespaceuri.txt
>
>
> NodeImpl.lookupNamespaceURI calls getPrefix() on all attributes which results in lots of pointless object allocations.  Simply pushing the calls inside the guard will avoid this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org