Replace num_cpus with std::thread::available_parallelism
Before adoption: this commit came in with the history the project adopted, so no landing records it.
I think this might help startup time a little bit, since it looks like on linux at least the std implementation uses syscalls to determine the parallelism, whereas num_cpus was processing the /proc/cpuinfo file. It also removes another dependency.
authored by Thayne McCombs · committed by Thayne McCombs · parent 8b5532d · Browse files · 3 files+14 added−23 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+14 added−23 removed
- other:+14 added−23 removed