Skip to main content

RAYON_CHANNEL_THRESHOLD

Constant RAYON_CHANNEL_THRESHOLD 

Source
pub const RAYON_CHANNEL_THRESHOLD: usize = 16;
Expand description

Channel-count threshold above which single-value operations parallelize over channels with rayon. Below it, sequential is faster (task overhead ~50ns vs channel op ~1ns: break-even around 8–16 channels).