From 6e6510d47d61cd8b26f77b6cc83eb98acf0d2e44 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Sun, 23 Feb 2020 21:52:04 +0100 Subject: Do not call isFileCaseCorrect that often 'qbs resolve qtcreator.qbs' results: macOs: 0m31.510s -> 0m26.417s Change-Id: Ibd69ba87f5515e99776e6af2f87587e711213b41 Reviewed-by: Christian Kandeler --- src/lib/corelib/language/moduleloader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/corelib/language/moduleloader.h') diff --git a/src/lib/corelib/language/moduleloader.h b/src/lib/corelib/language/moduleloader.h index 204c93ed4..410b2dde2 100644 --- a/src/lib/corelib/language/moduleloader.h +++ b/src/lib/corelib/language/moduleloader.h @@ -338,8 +338,7 @@ private: QStringList readExtraSearchPaths(Item *item, bool *wasSet = nullptr); void copyProperties(const Item *sourceProject, Item *targetProject); Item *wrapInProjectIfNecessary(Item *item); - static QString findExistingModulePath(const QString &searchPath, - const QualifiedId &moduleName); + QString findExistingModulePath(const QString &searchPath, const QualifiedId &moduleName); enum class ModuleProviderLookup { Regular, Fallback }; struct ModuleProviderResult @@ -412,6 +411,7 @@ private: ItemReader *m_reader; Evaluator *m_evaluator; QMap m_moduleDirListCache; + QHash, std::pair> m_existingModulePathCache; // The keys are file paths, the values are module prototype items accompanied by a profile. std::unordered_map>> m_modulePrototypes; -- cgit v1.2.3