Listing directories or using QFileInfo on android is really slow on assets directories. Something like:
QFileInfo("assets:/a_dir")
takes more than 300ms on my Sony Xperia J.
I suggest to let the build system automatically bundles a file containing the list of all the assets, and then at runtime using this file to avoid making slow android system calls.
| For Gerrit Dashboard: QTBUG-33704 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 76971,2 | Android: Support pregenerated cache in assets file engine | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
| 76972,3 | androiddeployqt: Pregenerate file list for assets | dev | qt/qttools | Status: ABANDONED | 0 | 0 |
| 78694,2 | Android: Support pregenerated cache in assets file engine | stable | qt/qtbase | Status: MERGED | +2 | 0 |
| 78695,1 | androiddeployqt: Pregenerate file list for assets | stable | qt/qttools | Status: MERGED | +2 | 0 |