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
+1 -1
View File
@@ -141,7 +141,7 @@ public:
private:
// TYPES
typedef std::multimap<string, VSymEnt*> NameScopeSymMap;
typedef std::map<VSymEnt*, VSymEnt*> ScopeAliasMap;
typedef std::unordered_map<VSymEnt*, VSymEnt*> ScopeAliasMap;
typedef std::set<std::pair<AstNodeModule*, string>> ImplicitNameSet;
typedef std::vector<VSymEnt*> IfaceVarSyms;
typedef std::vector<std::pair<AstIface*, VSymEnt*>> IfaceModSyms;