From 9938af2289d3cae5b4c476ea75c0c48a3b517b81 Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 6 Apr 2021 23:58:57 +0200 Subject: [PATCH] Use unordered_map for ref count Reduces ESMStore::countRecords time by 8%. --- apps/openmw/mwworld/esmstore.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/esmstore.hpp b/apps/openmw/mwworld/esmstore.hpp index 26f497a527..608b5489ea 100644 --- a/apps/openmw/mwworld/esmstore.hpp +++ b/apps/openmw/mwworld/esmstore.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "store.hpp" @@ -76,7 +77,7 @@ namespace MWWorld std::map mIds; std::map mStaticIds; - std::map mRefCount; + std::unordered_map mRefCount; std::map mStores;