[Solved] htmlagilitypack usage cpu more than 50% in the multi-threads


So what is your problem?

A HTML parser using CPU? What did you expect – the downloads do not, HTML parsing uses CPU, and if you use a lot of parallel threads then yes, this will add up.

Not a lot you can do – optimize HtmlAgilityPack via a proviler to see whether or not there is a bottleneck there. If not… well… get a faster processor / more servers or optimize your code.

Vote to close and -1 – I fail to see any related question here except “oh my god, my CPU is used when it has to do work”.

3

solved htmlagilitypack usage cpu more than 50% in the multi-threads