parallel is slower than serial

Guillaume Piolat first.last at spam.org
Tue Oct 18 13:24:59 UTC 2022


On Tuesday, 18 October 2022 at 11:56:30 UTC, Yura wrote:
> What I am doing wrong?

The size of your task are way too small.
To win something with OS threads, you must think of tasks that 
takes on the order of milliseconds rather than less than 0.1ms.
Else you will just pay extra in synchronization costs.


More information about the Digitalmars-d-learn mailing list