pub struct Setup {
pub splits: Option<usize>,
pub min_len: Option<usize>,
pub max_len: Option<usize>,
}Fields§
§splits: Option<usize>Number of splits/threads this iterator will use to proceed.
min_len: Option<usize>The minimum number of items that we will process
sequentially. Defaults to 1, which means that we will split
all the way down to a single item. This can be raised higher
using the with_min_len method, which will force us to
create sequential tasks at a larger granularity. Note that
Rayon automatically normally attempts to adjust the size of
parallel splits to reduce overhead, so this should not be
needed.
max_len: Option<usize>The maximum number of items that we will process
sequentially. Defaults to MAX, which means that we can choose
not to split at all. This can be lowered using the
with_max_len method, which will force us to create more
parallel tasks. Note that Rayon automatically normally
attempts to adjust the size of parallel splits to reduce
overhead, so this should not be needed.