Suppose we have something like this:
x.par_iter().map(|_| ...).collect::<Vec<_>>();
Is there a way to tell rayon "there are lots of tasks, but they are small, so assign them to threads in chunks of 100" ?
Suppose we have something like this:
x.par_iter().map(|_| ...).collect::<Vec<_>>();
Is there a way to tell rayon "there are lots of tasks, but they are small, so assign them to threads in chunks of 100" ?
You can also set that as a lower bound, calling .with_min_len(100)
in your iterator chain.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.