有关wxpython pyqt内存占用问题分析

WBOY
Release: 2016-06-16 08:43:52
Original
1181 people have browsed it

一直觉得wxpython占用内存比较多,在工作中写的一些小程序应用,一对比其它的小程序,发现内存相差确实有点大。

测试了下QT框架

复制代码 代码如下:

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

只载入了框架,内存占用就有明显差别。
载入wx的时候一般在20M左右,我写的几个应用也差不多是这么多,所以占用内存多的主要是框架,程序实际占用的大概只有几M左右。
载入pyqt大概在9M左右,具体应用中没做过测试。
看来以后还是可以尝试下QT框架的开发,而且还有Designer。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!