develooper Front page | perl.perl5.porters | Postings from August 2013

Re: [perl #119445] performance bug: perl Thread::Queue is 20x slower than Unix pipe

Thread Previous | Thread Next
From:
John Heidemann
Date:
August 30, 2013 22:02
Subject:
Re: [perl #119445] performance bug: perl Thread::Queue is 20x slower than Unix pipe
Message ID:
15856.1377900109@dash.isi.edu
On Fri, 30 Aug 2013 20:27:08 +0200, Leon Timmermans wrote: 
>On Tue, Aug 27, 2013 at 12:11 PM, Leon Timmermans <fawaka@gmail.com> wrote:
>
>    Actually I did write a queue implementation for threads::lite that should
>    be a lot faster for simple data structures, but I never released it as a
>    separate module that could be used with threads.pm.
>
>You can find it on github at https://github.com/Leont/thread-channel, it will
>probably be released to cpan as soon as I've written tests for it. I've
>created a benchmark based on your own, it's about 30% slower than pipes for
>simple strings, but unlike strings can also handle complex datastructures.
>
>Leon
>

That sounds great.  Should it be Thread::Queue::Fast
or Thread::Queue::Nonshared?

   -John

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About