Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-361

Performance enhancement for build from DOM

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • XmlSchema 1.4.3
    • XmlSchema
    • None

    Description

      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)

      Attachments

        1. xmlschema-361.patch
          9 kB
          Daniel Kulp
        2. xmlschema-361.patch2
          11 kB
          Daniel Kulp

        Activity

          People

            bmargulies Benson Margulies
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: