Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.2
-
None
Description
qmlimportscanner.exe is quite slow and it makes the whole deployment to android very slow.
This is a very simple multithreading optimization to parse the files in different threads.
The whole deployment of my simple project in QtCreator to my Android device, with no compilation, only the deployment, was taking 2min05 and it now takes 34s.
And it can probably be optimized even more.
for (const QFileInfo &x : entries) if (x.isFile()) ret = mergeImports(ret, findQmlImportsInFile(x.absoluteFilePath()));
to
QList<QString> absoluteFilePathes; for (const QFileInfo &x : entries) if (x.isFile()) absoluteFilePathes.push_back(x.absoluteFilePath()); QFuture< QVariantList > res; res = QtConcurrent::mappedReduced(absoluteFilePathes, findQmlImportsInFile, mergeImports2); res.waitForFinished();ret += res.result();
Attachments
Issue Links
- covers
-
QTCREATORBUG-27710 Spike Improve Qt for Android app apk building
- In Progress
- relates to
-
QTCREATORBUG-27359 Qt for Android Windows 10 deployment takes two minutes (too slow)
- Reported
- mentioned in
-
Page Loading...