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

Daniel Kulp updated WSCOMMONS-361:
----------------------------------

    Attachment: xmlschema-361.patch2


New version of the patch that will fall back to the old method if DOM level 3 
isn't available.



> 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, 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.

Reply via email to