pub fn create_rayon_pool(n_cpus: usize) -> ThreadPoolExpand 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.