3 ms·
Thanks for reply. I see reason 1. as a downside — it allows very messy Smarty-like markup that can generate ill-formed HTML. 2. I think there's little differe
by pornel 16y ago
Thanks for reply.
I see reason 1. as a downside — it allows very messy Smarty-like markup that can generate ill-formed HTML.
2. I think there's little difference whether you serialize first or later. Are all those new fancy DOM traversal, XPath and XSLT APIs really not faster than parsing and joining of strings?
- jeresig 16y ago"Are all those new fancy DOM traversal, XPath and XSLT APIs really not faster than parsing and joining of strings?" It cannot be understated how much slower touching the DOM is compared to doing string manipulation. Any DOM touching - but generating DOM nodes and traversing them is radically slow. If you want to support Internet Explorer it's not even an option, as far as performance goes.