Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Parallelization of multiple nested loops

by salva (Canon)
on Feb 07, 2018 at 11:18 UTC ( [id://1208618]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parallelization of multiple nested loops
in thread Parallelization of multiple nested loops

There may be at most 6 processes running in parallel. But my numbers refer to the total number of processes created and destroyed during the complete computation.

My point is that starting and stopping processes have a non insignificant overhead. If you start too many the total cost of forking may be an important percentage of the total cost of the computation.

  • Comment on Re^3: Parallelization of multiple nested loops

Replies are listed 'Best First'.
Re^4: Parallelization of multiple nested loops
by hippo (Bishop) on Feb 07, 2018 at 11:26 UTC

    Quite. If my reading of biosub's code (and my maths) is correct it forks 6^12 times (2,176,782,336 times). That's a tonne of overhead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found