forked from qt-creator/qt-creator
CMake: Do not create file system node in main thread
The file system scanning was already in a thread, but creating a tree from the flat list of file nodes was still done in the main thread. Creating the tree looks for and creates folder nodes as needed for each file node, which is not that big of a deal but still takes 1/3 of a second for the Qt Creator source tree. Task-number: QTCREATORBUG-25783 Change-Id: I28948ed3ff5233f6fc4b86e93da94d882b81e231 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -133,7 +133,7 @@ private:
|
||||
void combineScanAndParse();
|
||||
|
||||
std::unique_ptr<CMakeProjectNode> generateProjectTree(
|
||||
const QList<const ProjectExplorer::FileNode *> &allFiles, bool includeHeadersNode);
|
||||
const ProjectExplorer::TreeScanner::Result &allFiles, bool includeHeadersNode);
|
||||
void checkAndReportError(QString &errorMessage);
|
||||
|
||||
void updateCMakeConfiguration(QString &errorMessage);
|
||||
@@ -159,8 +159,8 @@ private:
|
||||
void runCTest();
|
||||
|
||||
ProjectExplorer::TreeScanner m_treeScanner;
|
||||
ProjectExplorer::TreeScanner::Result m_allFiles;
|
||||
QHash<QString, bool> m_mimeBinaryCache;
|
||||
QList<const ProjectExplorer::FileNode *> m_allFiles;
|
||||
|
||||
bool m_waitingForScan = false;
|
||||
bool m_waitingForParse = false;
|
||||
|
||||
Reference in New Issue
Block a user