1#[inline] 2pub fn get_thread_count() -> usize { 3 match std::thread::available_parallelism() { 4 Ok(count) => count.get(), 5 Err(_) => 1, 6 } 7}