foreach (i; taskPool.parallel(0..2_000_000)

Paul phshaffer at gmail.com
Sat Apr 1 22:32:55 UTC 2023


On Saturday, 1 April 2023 at 18:30:32 UTC, Steven Schveighoffer 
wrote:
> On 4/1/23 2:25 PM, Paul wrote:
>
> ```d
> import std.range;
>
> foreach(; iota(0, 2_000_000).parallel)
> ```
>
> -Steve

Is there a way to tell if the parallelism actually divided up the 
work?  Both versions of my program run in the same time ~6 secs.


More information about the Digitalmars-d-learn mailing list