in reply to Re^2: Parallel::ForkManager is time consuming...takes too long
in thread Parallel::ForkManager is time consuming...takes too long

Running a hundred Perl ops and doing a number of system calls including forking a process in order to avoid running a dozen Perl ops in series is indeed a losing proposition.
  • Comment on Re^3: Parallel::ForkManager is time consuming...takes too long

Replies are listed 'Best First'.
Re^4: Parallel::ForkManager is time consuming...takes too long
by esolkc (Acolyte) on Aug 12, 2011 at 23:08 UTC
    At least I have the syntax right. So but when should I use forking? All examples that I can find somewhere in the Net are as simple as the example I have provide. I have several loops and subroutines which can be distributed on different CPU-cores.
      When it helps and the extra complexity is acceptable.