Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://614248]
[Corion]: I hope you're well too!
[thezip]: Where did you go? We've already set a record for all-time February rainfall here.
[Corion]: thezip: The Canary Islands - they have a constant climate
[Corion]: Maybe a bit too many old people, but for some do-nothing vacation for R&R exactly the right thing ;)=
[thezip]: That's awesome. I bet you feel totally rejuvenated and ready for the next thing.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-02-23 17:03 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (349 votes). Check out past polls.