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

webassembly: reducing wasm file size

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • None
    • QPA
    • None

    Description

      Use Qt features configure system to reduce the wasm file size to reduce time it takes to download app.

      Sample binary sizes

      Example gzip brotli
      helloglwindow (QtCore + QtGui) 2.8M 2.1M
      wiggly widget (QtCore + QtGui + QtWidgets) 4.3M 3.2M
      SensorTag (QtCore + QtGui + QtWidgets + QtQuick + QtCharts) 8.6M 6.3M

      It is important to distinguish between size-after-compilation, and compressed download size.

      Tools

      wasm-strip, from Wabt (https://github.com/WebAssembly/wabt)
      twiggy: code size profiler (https://github.com/rustwasm/twiggy)

      Configure system options

      -no-mimetype-database (savings: 200 - 300 kb). We could possibly disable it by default, see https://codereview.qt-project.org/#/c/257764/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.webassembly qt.webassembly
            lpotter Lorn Potter
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            13 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes