Commit f40031d0 authored by Dominik Charousset's avatar Dominik Charousset

use N workers instead of N*2 (N = number of cores)

parent 5c35ee8d
...@@ -133,7 +133,7 @@ void thread_pool_scheduler::worker_loop(thread_pool_scheduler::worker* w) { ...@@ -133,7 +133,7 @@ void thread_pool_scheduler::worker_loop(thread_pool_scheduler::worker* w) {
} }
thread_pool_scheduler::thread_pool_scheduler() { thread_pool_scheduler::thread_pool_scheduler() {
m_num_threads = std::max<size_t>(std::thread::hardware_concurrency()*2, 4); m_num_threads = std::max<size_t>(std::thread::hardware_concurrency(), 4);
} }
thread_pool_scheduler::thread_pool_scheduler(size_t num_worker_threads) { thread_pool_scheduler::thread_pool_scheduler(size_t num_worker_threads) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment