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

Re: No gain in speed with threads

Thread Previous | Thread Next
From:
=?ISO-8859-1?Q?Andri_M=F6ll?=
Date:
January 3, 2009 00:22
Subject:
Re: No gain in speed with threads
Message ID:
495F2026.3050909@dot.ee
Hendrik Visage wrote:
> On Wed, Dec 31, 2008 at 15:32, Blanchette, Marco
> <MAB@stowers-institute.org>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'. :-)


Andri

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