Browse Source

unordered_map for RouterInfos and LeaseSets

pull/1560/head
orignal 4 years ago
parent
commit
67b94d3533
  1. 6
      libi2pd/NetDb.hpp

6
libi2pd/NetDb.hpp

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
// this file is called NetDb.hpp to resolve conflict with libc's netdb.h on case insensitive fs
#include <inttypes.h>
#include <set>
#include <map>
#include <unordered_map>
#include <list>
#include <string>
#include <thread>
@ -138,9 +138,9 @@ namespace data @@ -138,9 +138,9 @@ namespace data
private:
mutable std::mutex m_LeaseSetsMutex;
std::map<IdentHash, std::shared_ptr<LeaseSet> > m_LeaseSets;
std::unordered_map<IdentHash, std::shared_ptr<LeaseSet> > m_LeaseSets;
mutable std::mutex m_RouterInfosMutex;
std::map<IdentHash, std::shared_ptr<RouterInfo> > m_RouterInfos;
std::unordered_map<IdentHash, std::shared_ptr<RouterInfo> > m_RouterInfos;
mutable std::mutex m_FloodfillsMutex;
std::list<std::shared_ptr<RouterInfo> > m_Floodfills;

Loading…
Cancel
Save