3 ms·
Right. In P6 (potential) parallelism is explicit. You have to use an explicit construct such as the `<<` or `>>` meta operators. I used a simple arithmetic op
by raiph 9y ago
Right.
In P6 (potential) parallelism is explicit. You have to use an explicit construct such as the `<<` or `>>` meta operators.
I used a simple arithmetic operation but it can be any code. Of course, it had better be parallel safe.
The code-gen at compile time makes an AOT call on whether to attempt parallelization. If the JIT thinks that's not working out during a particular run it may decide to de-optimize.
> more generally, any loop where ... each iteration of the loop is independent of the others
Right. The `<<` and `>>` meta operators aren't the only relevant features. For example there's a `.race` method that not only (potentially) parallelizes a map, grep or whatever, but provides further explicit control such as batching size.