aredridel / html5

Event-driven HTML5 Parser in Javascript
http://dinhe.net/~aredridel/projects/js/html5/
MIT License
590 stars 168 forks source link

Performance? #98

Closed matanox closed 10 years ago

matanox commented 10 years ago

According to https://github.com/fb55/htmlparser2#performance, this is one of the slowest parsers in the bunch (?) .

aredridel commented 10 years ago

Indeed. Patches welcome -- we just landed one that helps!

danyaPostfactum commented 10 years ago

@matanster those test results are not relevant. HTML5 parser is not much slower. The DOM (jsdom) is actually slow. If you use DOM, you will not see a big difference. But if you do not need DOM, then you probably do not need HTML5 parser, or you probably will be interested in SAX-support, added here: https://github.com/aredridel/html5/pull/92

aredridel commented 10 years ago

++