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.