taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

Fix Issue #51 and #136 #146

Closed mackignacio closed 3 years ago

mackignacio commented 3 years ago
nonara commented 3 years ago

Have you checked to see performance impact? Positive lookahead in regex tends to be expensive. Curious to know what the difference is here

mackignacio commented 3 years ago

Do we have some performance tests that I can use?

nonara commented 3 years ago

There's a benchmark tool in the tests dir. It uses the built version, so you'll want to build dist first.

taoqf commented 3 years ago

Thank you.