cache parsed pri & prf files

no point in re-parsing them over and over during the scan of a bigger
project ...

shaves off another 20% of the loading time of Qt 4.6.
This commit is contained in:
Oswald Buddenhagen
2009-12-07 22:58:47 +01:00
parent ef660880ad
commit f9d955eb6c
8 changed files with 198 additions and 54 deletions

View File

@@ -1207,6 +1207,7 @@ void QtVersion::updateToolChainAndMkspec() const
ProFileOption option;
option.properties = versionInfo();
option.cache = ProFileCacheManager::instance()->cache();
ProFileReader *reader = new ProFileReader(&option);
reader->setCumulative(false);
reader->setParsePreAndPostFiles(false);