VB.Net HTTPWebRequest Speed is slow comparing Python URLOpen

Posted by regexhacks on Stack Overflow See other posts from Stack Overflow or by regexhacks
Published on 2011-02-12T06:21:22Z Indexed on 2011/02/12 7:25 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

Hi I am coding a web-crawler which will crawl the websites and selectively parse different sections of a web site.

I am a .Net developer so the choice was obvious that I did it in .Net but the speed was very slow which included downloading and parsing of HTMLPages

Then I tried to just download the contents first using .Net and then same domains using python but the python was very impressive in downloading data. I have achieved downloading using python but the later part is not that easy to code in python, which obviously i don't want to do.

The same batch of domain which took 100 seconds in Python was taking 20 minutes in .Net based crawler

I tried http://www.eqlit.com/ to download and in took 8 seconds in Python and same was taking 100 Seconds in .Net crawler

Does anyone anyone have any idea why this is slow in .Net but fast in python?

© Stack Overflow or respective owner

Related posts about python

Related posts about vb.net