(options: &ParserOptions, num_functions: usize)
| 43 | } |
| 44 | |
| 45 | fn worker_count(options: &ParserOptions, num_functions: usize) -> usize { |
| 46 | let requested = options |
| 47 | .parser_threads() |
| 48 | .unwrap_or_else(|| std::thread::available_parallelism().map(|n| n.get()).unwrap_or(1)) |
| 49 | .max(1); |
| 50 | |
| 51 | requested.min(num_functions).max(1) |
| 52 | } |
| 53 | |
| 54 | fn body_len(body: &FunctionBodyInput<'_>) -> usize { |
| 55 | match body { |
no test coverage detected