From 5992670b6b5e066a56fd5de13cf27c9d53c6cff0 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 02:43:02 +0200 Subject: Greatly reduce heap allocation count by using an unordered map for reference counting (though this change only has a small performance impact otherwise) --- src/core/managed/Manager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/managed/Manager.hpp b/src/core/managed/Manager.hpp index 47d1fc7..3ea2bf0 100644 --- a/src/core/managed/Manager.hpp +++ b/src/core/managed/Manager.hpp @@ -91,14 +91,14 @@ public: * map key describes the object which points at this object, the map * value contains the reference count from this object. */ - std::map refIn; + std::unordered_map refIn; /** * Map containing all references pointing from this managed object to * other managed objects. The map key describes the target object and * the map value the reference count. */ - std::map refOut; + std::unordered_map refOut; /** * Default constructor of the ObjectDescriptor class. -- cgit v1.2.3