Commit 59801ea6 authored by Dominik Charousset's avatar Dominik Charousset

Use at least 4 scheduler threads per default

parent 28f3e1c6
...@@ -27,7 +27,8 @@ namespace caf { ...@@ -27,7 +27,8 @@ namespace caf {
actor_system_config::actor_system_config() { actor_system_config::actor_system_config() {
// hard coded defaults // hard coded defaults
scheduler_policy = "work-stealing"; scheduler_policy = "work-stealing";
scheduler_max_threads = 1;//std::thread::hardware_concurrency(); scheduler_max_threads = std::max(std::thread::hardware_concurrency(),
unsigned{4});
scheduler_max_throughput = std::numeric_limits<size_t>::max(); scheduler_max_throughput = std::numeric_limits<size_t>::max();
scheduler_enable_profiling = false; scheduler_enable_profiling = false;
scheduler_profiling_ms_resolution = 100; scheduler_profiling_ms_resolution = 100;
......
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