From fc3de662c39575eb6798e702bd08df7563c9c08f Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 28 Oct 2021 11:18:39 +0200 Subject: [PATCH] registry: combine dense hash maps and identity when the key is a hashed string already --- src/entt/entity/registry.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 6890fb2ed..c50902e40 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -16,6 +16,7 @@ #include "../core/fwd.hpp" #include "../core/type_info.hpp" #include "../core/type_traits.hpp" +#include "../core/utility.hpp" #include "component.hpp" #include "entity.hpp" #include "fwd.hpp" @@ -1565,8 +1566,8 @@ public: } private: - mutable dense_hash_map pools{}; - dense_hash_map> vars{}; + mutable dense_hash_map pools{}; + dense_hash_map, identity> vars{}; std::vector groups{}; std::vector entities{}; entity_type free_list{tombstone};