[Solved] Fast dom parsing/scraping library


Rust is supposed to be fast. Does it have a really fast library for parsing html string into something that is accessible with css selectors or in any way?

I tried scraper and select and both are significantly slower than Javascript’s Cheerio.

I would like to try to offload some heavy sync jobs from Node.js to Rust but so far seems Javascript is winning in terms of speed.

1 Like

Rust is 100 times slower if you don’t pass --release flag to the build. This is the most common case of Rust seeming slow.


Thanks. I’m really a newbie here.


No problem. Welcome!


Release is about 10x faster than debug build which made it significantly faster than Cheerio library in Javascript.

closed #6

This topic was automatically closed after 27 hours. New replies are no longer allowed.