Skip to main content

spill_threads_for_workers

Function spill_threads_for_workers 

Source
pub fn spill_threads_for_workers(workers: usize, fraction: f64) -> usize
Expand description

Spill threads for a process with workers timely workers at fraction.

floor(workers * fraction) rounded down to a power of two, and at least one for any positive fraction. A fraction that is not positive yields zero, which evicts inline on the calling thread.