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 "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/11/16 03:29:48 UTC
[jira] Resolved: (WSCOMMONS-361) Performance enhancement for build
from DOM
[ https://issues.apache.org/jira/browse/WSCOMMONS-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved WSCOMMONS-361.
----------------------------------------
Resolution: Fixed
Fix Version/s: XmlSchema 1.4.3
Patch applied.
> Performance enhancement for build from DOM
> ------------------------------------------
>
> Key: WSCOMMONS-361
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-361
> Project: WS-Commons
> Issue Type: Improvement
> Components: XmlSchema
> Reporter: Daniel Kulp
> Assignee: Benson Margulies
> Fix For: XmlSchema 1.4.3
>
> Attachments: xmlschema-361.patch, xmlschema-361.patch2
>
>
> When building from a DOM, the builder creates a NodeNamespaceContext for each element and each time, it goes up all parent elements iterating over all the attributes. That's expensive.
> Attaching a patch that changes the NodeNamespaceContext to store the contxt in the user data. It can then combine the current elemets with the parents very quickly.
> Also, if the same DOM is used multiple times, it can be much faster as no contexts need to be created.
> Downside: requires DOM level 3, but XmlSchema already doesn't work if DOM level isn't level 3. (WSCOMMONS-358)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.