Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33704

Automatically bundle an asset files list, to avoid slow directories listing

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.3.0
    • 5.1.1
    • QPA
    • None
    • Android
    • f0480e03d8510e6f4b0baafe1a4f922d8de96140 (qttools), b79e73476771c068098270ebc26fb1e015f0e149 (qtbase)

      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

            esabraha Eskil Abrahamsen Blomfeldt
            guillaumec Guillaume Chereau
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes