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

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
August 30, 2013 18:27
Subject:
Re: [perl #119445] performance bug: perl Thread::Queue is 20x slowerthan Unix pipe
Message ID:
CAHhgV8jiSm7xf-um-CVYf=Oov-6DyTX6gJz-+69sc7JsuOVWtw@mail.gmail.com
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

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