Tracking issue for optimization ideas we want to try when we have time.
FYI @sorvell @cdata @kevinpschaaf @zhaoz
You might find manually walking trees to be faster than TreeWalker for the specific case being used here.
I did some performance analysis here:
https://github.com/developit/strip-dom-whitespace/issues/1#issuecomment-267873172
Closing this, but opened #147 to track optimizing NodeParts that are the only child
Most helpful comment
You might find manually walking trees to be faster than TreeWalker for the specific case being used here.
I did some performance analysis here:
https://github.com/developit/strip-dom-whitespace/issues/1#issuecomment-267873172