C++ data (Re: [PyKDE] PyQT module size)

Simon Edwards simon at simonzone.com
Sat Feb 19 20:02:18 GMT 2005


Hello,

I wrote a version of mem.py in C++, and have put the data side by side in a 
spreadsheet. It appears that a PyQt program more overhead has in terms of 
libraries over C++, roughly 8Mb in this test for me. When running, the memory 
usage pattern seems to mirror the C++ program with perhaps a little bit of 
overhead per object, ~10% (ballpark figure).

What is needed now is some tests that create lots of Qt objects, and then see 
how object creation affects memory usage.

Using Mandrake Linux 10.1, Qt-3.3.3, SIP 4.0.1 (I think, from kdebindings 
3.3.1)

cheers,

-- 
Simon Edwards             | Guarddog Firewall
simon at simonzone.com       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyQt_memory_usage.xls
Type: application/msexcel
Size: 14848 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050219/c4ee36c9/PyQt_memory_usage.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1183 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050219/c4ee36c9/main.bin


More information about the PyQt mailing list