summaryrefslogtreecommitdiff
path: root/src/core/managed
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-12 02:43:02 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:24:14 +0200
commit5992670b6b5e066a56fd5de13cf27c9d53c6cff0 (patch)
tree1641b2e2fe2da71c048868a03e1a38bc2c1a3088 /src/core/managed
parentb57cb741f8982c806022ff469fcf468df8e36d4e (diff)
Greatly reduce heap allocation count by using an unordered map for reference counting (though this change only has a small performance impact otherwise)
Diffstat (limited to 'src/core/managed')
-rw-r--r--src/core/managed/Manager.hpp4
1 files changed, 2 insertions, 2 deletions
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<Managed *, int> refIn;
+ std::unordered_map<Managed *, int> 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<Managed *, int> refOut;
+ std::unordered_map<Managed *, int> refOut;
/**
* Default constructor of the ObjectDescriptor class.