Skip to main content

chunks_for

Function chunks_for 

Source
pub fn chunks_for(len: usize, min: usize) -> usize
Expand description

A chunk count for len units of work with at least min units per chunk: enough chunks to balance load across helpers, few enough that dispatch stays negligible. Single-threaded builds get 1.