[PyQt] Attempting to reduce the memory footprint of my PyQt5 application

Xavion xavion.0 at gmail.com
Wed Sep 7 22:57:22 BST 2016


So, you're both saying that the following two lines are equivalent (from a
memory footprint standpoint):

   - from PyQt5.QtCore import QVariant
   - from PyQt5 import QtCore

In other words, in both cases, the whole of 'QtCore' will be imported
(rather than just 'QVariant' in the first case).

Florian: I think you're saying that I can reduce the memory usage by doing
the following.  If so, can we get the UIC and RCC generators to behave this
way?

   - from PyQt5 import QtCore
   - mVariant = QtCore.QVariant
   - del QtCore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160908/edc0098e/attachment.html>


More information about the PyQt mailing list