diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-12 02:43:02 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:24:14 +0200 |
commit | 5992670b6b5e066a56fd5de13cf27c9d53c6cff0 (patch) | |
tree | 1641b2e2fe2da71c048868a03e1a38bc2c1a3088 /src/core/managed | |
parent | b57cb741f8982c806022ff469fcf468df8e36d4e (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.hpp | 4 |
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. |