[
https://issues.apache.org/jira/browse/WSCOMMONS-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614199#action_12614199
]
Daniel Kulp commented on WSCOMMONS-361:
---------------------------------------
Note: this patch makes processing some of CXF's complex schemas about 10%
faster.
> 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
> Attachments: xmlschema-361.patch
>
>
> 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.