Switch to faster unordered_map/set

This commit is contained in:
SChernykh
2021-10-22 18:18:38 +02:00
parent 04d18cdf1d
commit 148b9dd294
16 changed files with 70 additions and 42 deletions
+1 -2
View File
@@ -19,7 +19,6 @@
#include "tcp_server.h"
#include <random>
#include <unordered_map>
namespace p2pool {
@@ -132,7 +131,7 @@ private:
std::string m_initialPeerList;
uv_rwlock_t m_cachedBlocksLock;
std::unordered_map<hash, PoolBlock*> m_cachedBlocks;
unordered_map<hash, PoolBlock*> m_cachedBlocks;
private:
static void on_timer(uv_timer_t* timer) { reinterpret_cast<P2PServer*>(timer->data)->on_timer(); }