logic: Improved code view performance

* fixed bottleneck in TokenLocationCollection::findLocationFile()
* cache file ids and paths in PersistenStorage
This commit is contained in:
Eberhard Graether
2016-05-12 22:50:14 +02:00
parent 6a576bccc9
commit 245cafdc7b
5 changed files with 58 additions and 81 deletions
+3
View File
@@ -134,6 +134,7 @@ private:
void addComponentAccessToGraph(Graph* graph) const;
void buildSearchIndex();
void buildFilePathMaps();
void buildHierarchyCache();
void optimizeFTSTable();
@@ -147,6 +148,8 @@ private:
SqliteStorage m_sqliteStorage;
mutable std::map <FilePath, Id> m_fileNodeIds;
mutable std::map <Id, FilePath> m_fileNodePaths;
HierarchyCache m_hierarchyCache;
};