mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 11:11:33 +00:00
Use unordered_map for ref count
Reduces ESMStore::countRecords time by 8%.
This commit is contained in:
parent
6248dc72cb
commit
9938af2289
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
#include <components/esm/records.hpp>
|
#include <components/esm/records.hpp>
|
||||||
#include "store.hpp"
|
#include "store.hpp"
|
||||||
|
@ -76,7 +77,7 @@ namespace MWWorld
|
||||||
std::map<std::string, int> mIds;
|
std::map<std::string, int> mIds;
|
||||||
std::map<std::string, int> mStaticIds;
|
std::map<std::string, int> mStaticIds;
|
||||||
|
|
||||||
std::map<std::string, int> mRefCount;
|
std::unordered_map<std::string, int> mRefCount;
|
||||||
|
|
||||||
std::map<int, StoreBase *> mStores;
|
std::map<int, StoreBase *> mStores;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue