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.