Skip to content

Should nested strategy not be faster than concurrent files strategy for parallelization? #27

Answered by Jean-Romain
wiesehahn asked this question in Q&A
Discussion options

You must be logged in to vote

should be as fast as concurrent processing if no stages are parallelizable

Absolutely. In theory at least.

but it should be faster if parallelizable stages are processed.

Absolutely, In theory. In practice, it is hard to say and should be benchmarked. In case of nested(4,2) on a 20 cores machine I'd say yes, very likely. In case of (4,2) on a 10 cores machine, in my opinion it is not obvious at all. 4x2 = 8 cores involved. On a 10 cores machine, there is usually no significant gains after half cores. Also, you must consider the overheads, parallelization has a cost. Then you must consider how synchronized are each cores in the outer loop. Imagine stage 3 is parallelized and you are pr…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wiesehahn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants