Controller optimizations -- make locking more fine-grained, use true hardware concurrency, etc.
This commit is contained in:
parent
6234bfd8bf
commit
cafbe44dde
5 changed files with 109 additions and 150 deletions
|
@ -25,6 +25,7 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <thread>
|
||||
|
||||
#include "node/Constants.hpp"
|
||||
#include "node/Hashtable.hpp"
|
||||
|
@ -1114,6 +1115,7 @@ int main(int argc,char **argv)
|
|||
*/
|
||||
|
||||
std::cout << "[info] sizeof(void *) == " << sizeof(void *) << std::endl;
|
||||
std::cout << "[info] hardware concurrency == " << std::thread::hardware_concurrency() << std::endl;
|
||||
std::cout << "[info] sizeof(NetworkConfig) == " << sizeof(ZeroTier::NetworkConfig) << std::endl;
|
||||
|
||||
srand((unsigned int)time(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue