in reply to No Performance gain with Parallel::ForkManager
McA suggested: Scan the whole directory tree and push all found mp3 files on a array (job queue), then split the queue into N parts (N = number of cores) and start N subprocesses working on their subqueue. In this case you do only fork once per subqueue and not for every file (which is expensive).
I can not find a simple way to split the loop into 2 (my no of cores) independent subprocesses. So I did what karlgoethebier suggested .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: No Performance gain with Parallel::ForkManager
by davido (Cardinal) on Feb 23, 2014 at 19:02 UTC | |
by walto (Pilgrim) on Feb 23, 2014 at 19:46 UTC | |
|
Re^2: No Performance gain with Parallel::ForkManager
by McA (Priest) on Feb 23, 2014 at 17:11 UTC | |
by walto (Pilgrim) on Feb 23, 2014 at 19:06 UTC | |
by RichardK (Parson) on Feb 23, 2014 at 17:59 UTC | |
by McA (Priest) on Feb 23, 2014 at 18:29 UTC |