Excluding Unused Qt Modules Cuts a PySide6 App's Installed Size from 131 MB to 82 MB
A developer shrank the installed size of Nyctale, a Windows diagnostic tool built with Python and PySide6, from 131 MB to 82 MB in version 1.0.3. The installer also dropped from 34.8 MB to 23.7 MB after unused Qt modules were removed from the build. The article lists the PyInstaller excludes used and estimates each module's weight, with QtOpenGL the heaviest at about 10.2 MB. The author notes that these figures are measured estimates and that the 49 MB reduction exceeds the 36.2 MB of modules excluded, which they cannot fully explain. The piece also warns that exclusions are risky if a module is still imported indirectly, so the author recommends testing features that use Qt after building.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in