develooper Front page | perl.ithreads | Postings from January 2009

Re: No gain in speed with threads

Thread Previous | Thread Next
January 3, 2009 00:22
Re: No gain in speed with threads
Message ID:
Hendrik Visage wrote:
> On Wed, Dec 31, 2008 at 15:32, Blanchette, Marco
> <>wrote:
>> Dear all,
>> I am trying to speed up a very long procedure that I need to run on
>> multiple files and though that I could multithread different jobs on
>> different files across multiple CPUs. For some reason that I don't really
>> get, I only achieve very small time gain. I have included my script which
>> essentially repeat the same function, extractSeq() on multiple files using a
>> maximum of four threads.
>> I would really appreciate if I could finally understand how to use threads
>> to speed up some of my lengthy scripts.
> Yeah, the problem is these things are let lose without some nice computer
> Science back grounds ;(

Or `use Thread::Pool::Simple'. :-)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About