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

Re^3: Parallelization of multiple nested loops

by salva (Abbot)
on Feb 07, 2018 at 11:18 UTC ( #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 (Canon) 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
Node Status?
node history
Node Type: note [id://1208618]
help
Chatterbox?
Tanktalus has to figure out why his cb talker isn't working :(
[choroba]: https?
[choroba]: That was at least why my cb talker wasn't working.
[Tanktalus]: curious, then, why the reader works :)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-07-15 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?