Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Need help with Perl multi threading

by chromatic (Archbishop)
on Jan 27, 2012 at 20:11 UTC ( #950438=note: print w/replies, xml ) Need Help??

in reply to Re: Need help with Perl multi threading
in thread Need help with Perl multi threading

I would be hard-pressed to be convinced that “adding threads to” such an algorithm that is right now “working fine(!)” will actually make it either more reliable, or faster.

In a case like this, where the code performs network IO, it's easy to convince me that having multiple things block on IO simultaneously can be faster than code which has to block on IO serially.

I use parallelism all the time in similar situations to great effect.

  • Comment on Re^2: Need help with Perl multi threading

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-06-25 08:21 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.