Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: No Performance gain with Parallel::ForkManager

by karlgoethebier (Abbot)
on Feb 23, 2014 at 12:02 UTC ( [id://1075885]=note: print w/replies, xml ) Need Help??


in reply to No Performance gain with Parallel::ForkManager

OK, already mentioned by McA :-( but i would also give the old fashioned way a try:

my @mp3s = File::Find::Rule->file() ->name( '*.mp3' ) ->in( $myMP3Library ); foreach my $mp3 ( @mp3s ) { # doTheForkStuff... }

Edit: Fixed tag.

And start with $MAX_PROCESSES = 10; or so.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^2: No Performance gain with Parallel::ForkManager
by Laurent_R (Canon) on Feb 23, 2014 at 12:12 UTC
    ++. Starting 50 processes for processing 100 files is most probably a bad idea in terms of performance (and actually most probably also for more files, but it is especially the case when each process will process only an average 2 files). I would also try with perhaps 10 processes, or maybe even only 5.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1075885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found