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.