Skip loading of index files if we are running with --prepare

This makes generation of the index files 3 times as fast.

Change-Id: I89af86e54d932fa19330f36a33af6ed9ea81461d
Reviewed-by: Martin Smith <martin.smith@digia.com>
This commit is contained in:
Lars Knoll 2015-07-22 13:48:10 +02:00
parent 795476c41a
commit 6508365c04

View File

@ -342,9 +342,11 @@ static void processQdocconfFile(const QString &fileName)
qdb->clearSearchOrder(); qdb->clearSearchOrder();
if (!Generator::singleExec()) { if (!Generator::singleExec()) {
Generator::debug(" loading index files"); if (!Generator::preparing()) {
loadIndexFiles(config); Generator::debug(" loading index files");
Generator::debug(" done loading index files"); loadIndexFiles(config);
Generator::debug(" done loading index files");
}
qdb->newPrimaryTree(project); qdb->newPrimaryTree(project);
} }
else if (Generator::preparing()) else if (Generator::preparing())