Function create_rayon_pool

Source
pub fn create_rayon_pool(n_cpus: usize) -> ThreadPool
Expand description

Creates a rayon ThreadPool with the given number of CPUs.

Sets the RAYON_NUM_THREADS environment variable and builds the pool. Replaces the duplicated pattern found in 11 locations across the codebase.