Profiled and added a map to GraphStructuredStack's getContainingFrontier to massivly improve the C++ Kraken compiler's compile time by improving parsing time (parsing time cut by significantly more than half)

This commit is contained in:
Nathan Braswell
2016-01-29 14:09:09 -05:00
parent 17d4371d5c
commit da38ae03ed
2 changed files with 15 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ class GraphStructuredStack {
private:
std::vector<std::vector<NodeTree<int>*>*> gss;
std::map< std::pair< NodeTree<int>*, NodeTree<int>* >, NodeTree<Symbol>* > edges;
std::map< NodeTree<int>*, int > containing_frontier_map;
};
#endif