rayon-rs/rayon

idea: allow control of splitting depth / number of jobs

オープン

#476 opened on 2017/11/17

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (450 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (9,410 個のスター)
PR merge metrics
 (平均マージ 9m) (30d で 2 merged PRs)

説明

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.

コントリビューターガイド