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.

Reply via email to