[RESOLVED] Speeding up my code
I have a method which uses the WebClient.DownloadString to download the html for 12x20 + 20 pages (260). It is a loop that looks simplified like this:
Code:
foreach page in pages (which are the 20)
Use regex to find 12 links to other pages
foreach of these matches (12)
Use regex to find an int
store that int in a list
next match
next page
This process takes around 100 seconds at the longest. How can I speed it up? Or is it impossible? I don't have that fast internet at home, about 10 megabit down.
Or is it the regex that takes time?