An analysis of the memory footprint of wxpython pyqt

  • 2020-04-02 13:44:06
  • OfStack

I always think that wxpython occupies more memory, in the work of writing some small applications, a comparison with other small programs, found that the memory gap is really a little big.

Tested the QT framework


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

With only the framework loaded, the footprint is significantly different.
When wx is loaded, it is usually around 20M, and I have written several applications that are about this much, so the main memory is the framework, the actual application is only a few M or so.
Pyqt was loaded in about 9M, and has not been tested in specific applications.
It seems that we can still try the development of QT framework in the future, and there is a Designer.


Related articles: