unoredered_map is faster, reduce latency with the switch
Former-commit-id: f241e435ed0fd2988ada887f02e19884fd82be51
This commit is contained in:
parent
fc119b3e56
commit
af10f809b4
3
src/gc.h
3
src/gc.h
@ -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;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user