v1.13.0
Features
- add Linux cgroups support when calling
get()
.
Linux cgroups are a way to restrict the amount of resources a container can use. With this change, most libraries and applications deciding the number of threads to use via num_cpus::get()
will spawn less threads, resulting in better usage of the CPU, and typically perform better.