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
@@ -335,7 +335,7 @@ void V3Graph::dumpDotFile(const string& filename, bool colorAsSubgraph) const {
// We use a map here, as we don't want to corrupt anything (userp) in the graph,
// and we don't care if this is slow.
std::map<const V3GraphVertex*, int> numMap;
std::unordered_map<const V3GraphVertex*, int> numMap;
// Print vertices
int n = 0;