How can I achieve a 94% performance boost? In this particular case, by an optimization in the DOM extension. Thanks @nielsdos
Read more about this performance fix in my latest blog post.
@Crell@beberlei The important part was avoiding O(n) insertion of the namespace by adding it at the front of the "old namespace" list instead of the back. To be more specific, make sure it's added at the second position within the linked list, the actual front position wouldn't work due to API constraints of libxml (the first namespace must always be the XML namespace).
With the new DOM classes, all of this mess is avoided because we no longer need namespace reconciliation.
Add comment