parallel is slower than serial
Ali Çehreli
acehreli at yahoo.com
Tue Oct 18 16:12:46 UTC 2022
On 10/18/22 06:24, Guillaume Piolat wrote:
> 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.
In other words, the OP can adjust work unit size. It is on the official
documentation but I also mention it on slide 72 of the section that
starts at the following point:
https://youtu.be/dRORNQIB2wA?t=1327
Ali
More information about the Digitalmars-d-learn
mailing list