aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/compactcas.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/compactcas.h')
-rw-r--r--src/zenstore/compactcas.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h
index b149fd682..eff9cc135 100644
--- a/src/zenstore/compactcas.h
+++ b/src/zenstore/compactcas.h
@@ -11,7 +11,10 @@
#include <atomic>
#include <limits>
-#include <unordered_map>
+
+ZEN_THIRD_PARTY_INCLUDES_START
+#include <tsl/robin_map.h>
+ZEN_THIRD_PARTY_INCLUDES_END
namespace spdlog {
class logger;
@@ -88,9 +91,9 @@ private:
std::filesystem::path m_BlocksBasePath;
BlockStore m_BlockStore;
- RwLock m_LocationMapLock;
- typedef std::unordered_map<IoHash, BlockStoreDiskLocation, IoHash::Hasher> LocationMap_t;
- LocationMap_t m_LocationMap;
+ RwLock m_LocationMapLock;
+ typedef tsl::robin_map<IoHash, BlockStoreDiskLocation, IoHash::Hasher> LocationMap_t;
+ LocationMap_t m_LocationMap;
};
void compactcas_forcelink();