Parallelizing factorial computation

Peter Alexander peter.alexander.au at gmail.com
Fri Aug 24 20:43:46 UTC 2018


On Friday, 24 August 2018 at 13:04:47 UTC, Uknown wrote:
> I was quite surprised by the fact that parallel ran so much 
> slower than recursive and loop implementations. Does anyone 
> know why?

n = 100 is too small to see parallelism gains.

Try n = 10000

https://run.dlang.io/is/XDZTSd


More information about the Digitalmars-d-learn mailing list