Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1735

Fast append optimization for the DOM parser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 2.8.0, 3.0.0
    • DOM
    • None
    • any

    Description

      The attached patch adds the appendChildFast function to the DOMParentNode internal interface which skips a number of actions and checks compared to the vanilla appendChild function that are unnecessary in the controlled environment of building a new DOM document. The patch also changes AbstractDOMParser to call appendChildFast instead of appendChild.

      This change results in 25-30% parsing speed improvement depending on the workload used.

      Attachments

        1. fast-append.patch
          5 kB
          Boris Kolpackov

        Activity

          People

            Unassigned Unassigned
            bsk Boris Kolpackov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: