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

Re: Poor performances with threads

by markuhs (Scribe)
on Oct 23, 2009 at 11:27 UTC ( #802879=note: print w/replies, xml ) Need Help??


in reply to Poor performances with threads

I would instantiate the worker threads before reading the data. This would also give them the job to read the data, but can speed it up since creation is faster...

Consider: http://perldoc.perl.org/perlthrtut.html#Performance-considerations

Lukas

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://802879]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-02-21 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (306 votes). Check out past polls.