unoredered_map is faster, reduce latency with the switch

Former-commit-id: f241e435ed0fd2988ada887f02e19884fd82be51
This commit is contained in:
John Sully 2020-07-01 21:58:35 -04:00
parent fc119b3e56
commit af10f809b4

View File

@ -1,6 +1,7 @@
#pragma once
#include <vector>
#include <assert.h>
#include <unordered_set>
template<typename T>
class GarbageCollector
@ -99,6 +100,6 @@ private:
fastlock m_lock { "Garbage Collector"};
std::vector<EpochHolder> m_vecepochs;
std::set<uint64_t> m_setepochOutstanding;
std::unordered_set<uint64_t> m_setepochOutstanding;
uint64_t m_epochNext = 0;
};