From af10f809b4818b3ceb6bd2efdbfb5706e9dbcb1f Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 1 Jul 2020 21:58:35 -0400 Subject: [PATCH] unoredered_map is faster, reduce latency with the switch Former-commit-id: f241e435ed0fd2988ada887f02e19884fd82be51 --- src/gc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gc.h b/src/gc.h index 9717dcbee..d2c4066f7 100644 --- a/src/gc.h +++ b/src/gc.h @@ -1,6 +1,7 @@ #pragma once #include #include +#include template class GarbageCollector @@ -99,6 +100,6 @@ private: fastlock m_lock { "Garbage Collector"}; std::vector m_vecepochs; - std::set m_setepochOutstanding; + std::unordered_set m_setepochOutstanding; uint64_t m_epochNext = 0; }; \ No newline at end of file