[Solved] Fast dom parsing/scraping library

#1

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
#2

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.

6 Likes
#3

Thanks. I’m really a newbie here.

#4

No problem. Welcome!

#5

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

2 Likes
closed #6

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