For performance, use unordered_set/map where possible. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-11-25 20:57:30 -05:00
parent 085ef5fc05
commit f2d8e45d72
22 changed files with 34 additions and 28 deletions
+2 -2
View File
@@ -74,10 +74,10 @@ private:
// Within the context of a given module, LocalInstanceMap maps
// from child modules to the count of each child's local instantiations.
typedef std::map<AstNodeModule*, int> LocalInstanceMap;
typedef std::unordered_map<AstNodeModule*, int> LocalInstanceMap;
// We keep a LocalInstanceMap for each module in the design
std::map<AstNodeModule*, LocalInstanceMap> m_instances;
std::unordered_map<AstNodeModule*, LocalInstanceMap> m_instances;
// METHODS
VL_DEBUG_FUNC; // Declare debug()