SoFunction
Updated on 2024-10-30

Analysis of memory usage issues related to wxpython pyqt

I've always felt that wxpython takes up a lot of memory, and in some of the small program applications I write at work, once I compare them to other small programs, I find that the memory difference is indeed a bit large.

Tested the QT framework

Copy Code The code is as follows.

import sys,time
from PyQt4 import QtCore, QtGui
#import wx
if __name__ == "__main__":
while True:
(1)

There is a noticeable difference in memory usage with just the frames loaded.
It's usually around 20M when loading wx, and the few apps I've written are about that much, so it's mostly the framework that takes up a lot of memory, and the program actually takes up maybe a few megabytes or so.
Loading pyqt is around 9M, haven't tested it in specific applications.
It looks like you can still try the QT framework development in the future, and there is a Designer.