You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <tu...@ws.apache.org> on 2007/02/12 23:13:06 UTC

[jira] Created: (TUSCANY-1107) Multiple calls to getNamespaceContext

Multiple calls to getNamespaceContext
-------------------------------------

                 Key: TUSCANY-1107
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SDO Implementation
            Reporter: Brent Daniel


In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-1107:
--------------------------------

    Attachment: 1107

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>         Attachments: 1107, 1107, 1107
>
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-1107:
--------------------------------

    Attachment: 1107

The attached patch has passed all build tests.

Now, getNamespaceContext() is cached.
What's even better is, by design, as long as there's only one (root) element declaring/binding NameSpace(s), getNamespaceContext() will be called only once at most.

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>         Attachments: 1107
>
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-1107:
--------------------------------

    Attachment: 1107

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>         Attachments: 1107, 1107
>
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-1107:
--------------------------------

    Attachment: 1107

Thanks to Frank for the pursuits of optimization.

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>         Attachments: 1107, 1107, 1107, 1107
>
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-1107:
------------------------------------

    Fix Version/s: Java-SDO-M3

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>             Fix For: Java-SDO-M3
>
>         Attachments: 1107, 1107, 1107, 1107
>
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472443 ] 

Yang ZHONG commented on TUSCANY-1107:
-------------------------------------

I'm looking into this.

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1107) Multiple calls to getNamespaceContext

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Budinsky resolved TUSCANY-1107.
-------------------------------------

    Resolution: Fixed

Committed revision 507227.

> Multiple calls to getNamespaceContext
> -------------------------------------
>
>                 Key: TUSCANY-1107
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1107
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>            Reporter: Brent Daniel
>         Attachments: 1107, 1107, 1107, 1107
>
>
> In SDOXMLHelperImpl, both getPrefix() and getURI() make calls to OMStAXWrapper.getNamespaceContext(). This causes multiple calls to getNamespaceContext each time an element is parsed. If possible, this value should be cached to increase performance. 

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org