Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Frozen Qt applications are bloated

Frozen Qt applications are bloated

Scheduled Pinned Locked Moved Solved Qt for Python
4 Posts 3 Posters 552 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Strangelove
    wrote on last edited by Strangelove
    #1

    I've tried several different tools for deploying a frozen macOS bundle of my Qt application — py2app, pyinstaller, cx_Freeze — with variable degrees of success.

    My most recent app, which is relatively simple, has been packaged by cx_Freeze into a 240 megabyte executable. Inside the app bundle I found a gazillion Qt components my app doesn't need at all, and deleted them by hand, wholesale, without going into the details (I was pretty sure I didn't need anything related to 3D, OpenGL or Network, for example).

    This has reduced the app size by half to around 120mb, without any fine-tuning on my part. And it worked just fine afterwards. This is an amazing waste of space and is especially annoying when you have to quickly send a small tool to a few people by mail.

    Surely this is something that could be done automatically by a machine? Would it be possible for the Qt company to provide a tool for freezing PySide6 applications (for macOS but also other platforms), and including only what is needed to run the executable?

    Thanks.

    sierdzioS 1 Reply Last reply
    0
    • S Strangelove

      I've tried several different tools for deploying a frozen macOS bundle of my Qt application — py2app, pyinstaller, cx_Freeze — with variable degrees of success.

      My most recent app, which is relatively simple, has been packaged by cx_Freeze into a 240 megabyte executable. Inside the app bundle I found a gazillion Qt components my app doesn't need at all, and deleted them by hand, wholesale, without going into the details (I was pretty sure I didn't need anything related to 3D, OpenGL or Network, for example).

      This has reduced the app size by half to around 120mb, without any fine-tuning on my part. And it worked just fine afterwards. This is an amazing waste of space and is especially annoying when you have to quickly send a small tool to a few people by mail.

      Surely this is something that could be done automatically by a machine? Would it be possible for the Qt company to provide a tool for freezing PySide6 applications (for macOS but also other platforms), and including only what is needed to run the executable?

      Thanks.

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Strangelove said in Freezed Qt applications are bloated:

      Would it be possible for the Qt company to provide a tool for freezing PySide6 applications (for macOS but also other platforms), and including only what is needed to run the executable?

      You can suggest this on Qt bugtracker.

      (Z(:^

      S 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @Strangelove said in Freezed Qt applications are bloated:

        Would it be possible for the Qt company to provide a tool for freezing PySide6 applications (for macOS but also other platforms), and including only what is needed to run the executable?

        You can suggest this on Qt bugtracker.

        S Offline
        S Offline
        Strangelove
        wrote on last edited by Strangelove
        #3

        @sierdzio Just did so. Thanks.

        https://bugreports.qt.io/browse/PYSIDE-1654

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Please provide the link to the report so that it is easier to find.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved