rayon-rs/rayon

idea: allow control of splitting depth / number of jobs

Open

#476 opened on Nov 17, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (9,410 stars) (450 forks)batch import
enhancementhelp wanted

Description

We currently have with_min_len and with_max_len to control the length of the split iterators. However, this only works on an IndexedParallelIterator that knows its length in the first place.

Perhaps we could offer different controls for the splitting depth, or the number of jobs (~2depth), which could work on any parallel iterator. This may line up more directly to how folks think about their tasks, especially if they want to split exactly into the number of threads.

Contributor guide