Skip to content

Commit

Permalink
Use half the amount of threads for the signature checker
Browse files Browse the repository at this point in the history
  • Loading branch information
wezrule committed Feb 20, 2020
1 parent b740037 commit 6b102d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/nodeconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class node_config
unsigned io_threads{ std::max<unsigned> (4, std::thread::hardware_concurrency ()) };
unsigned network_threads{ std::max<unsigned> (4, std::thread::hardware_concurrency ()) };
unsigned work_threads{ std::max<unsigned> (4, std::thread::hardware_concurrency ()) };
unsigned signature_checker_threads{ (std::thread::hardware_concurrency () != 0) ? std::thread::hardware_concurrency () - 1 : 0 }; /* The calling thread does checks as well so remove it from the number of threads used */
unsigned signature_checker_threads{ (std::thread::hardware_concurrency () / 2 > 1) ? std::thread::hardware_concurrency () / 2 - 1 : 0 }; /* The calling thread does checks as well so remove it from the number of threads used */
bool enable_voting{ false };
unsigned bootstrap_connections{ 4 };
unsigned bootstrap_connections_max{ 64 };
Expand Down

0 comments on commit 6b102d6

Please sign in to comment.