Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Processing large file using threads

by renodino (Curate)
on May 08, 2007 at 21:02 UTC ( #614248=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Processing large file using threads
in thread Processing large file using threads

Just a hunch, but...

Is this line

my ($host)=GetHost($url);
doing any DNS-ish stuff ? If so, I'd suspect that's your bottleneck, and you'll need to look into a smarter hostname cache solution. Threads will help, but probably not as much as you'd hope.

Perl Contrarian & SQL fanboy


Comment on Re^3: Processing large file using threads
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://614248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-07-26 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls