Hi,
I've noticed that once I've compiled with py2exe my wxPython application the memory usage takes over than 40mb!
I'm using
from wxPython.wx import *
in all the py pages, is this the reason? so i should import only necessary modules, or is there another answer to this?
Hi,
I've noticed that once I've compiled with py2exe my wxPython application the memory usage takes over than 40mb!
I'm using from wxPython.wx import *
in all the py pages, is this the reason? so i should import only necessary modules, or is there another answer to this?
How much does it take before py2exe?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
the same, always over 40mb (ususally 47mb without any document opened)
Give us a directory listing. As an example here is mine for BitPim
which is a 10MB py2exe (~5MB as an installer). The resources subdirectory
contains another 2MB of help files, images etc. I use quite a number
of the wx modules (calendar, grid, treelist, help, help, stc):
It is a simple wxPython application run through py2exe, and when fired up consumes 12MB of memory. Seems like a heck of a lot for the original file sizes and what it is actually doing.
Is this normal?
BTW - I am only importing the modules I need from wxPython in the non-gui-centric files, and I do a "from wxPython.wx import *" in the GUI file, as it was generated by wxGlade.
Thanks,
mark.
···
On Tue, 25 Nov 2003 02:06:21 -0800, Roger Binns <rogerb@rogerbinns.com> wrote:
wishmaster@sephiroth.it wrote:
How much does it take before py2exe?
the same, always over 40mb (ususally 47mb without any document opened)
Give us a directory listing. As an example here is mine for BitPim
which is a 10MB py2exe (~5MB as an installer). The resources subdirectory
contains another 2MB of help files, images etc. I use quite a number
of the wx modules (calendar, grid, treelist, help, help, stc):
Sorry, I didn't mean Mb in application size, but in memory usage..
but i found that disabling one if the tree ctrl im using the meory usage it's less than 20Mb!
I think i found the memory leak problem.
thanks
[...] a simple wxPython application run through py2exe, and when fired up
consumes 12MB of memory. Seems like a heck of a lot for the original file
sizes and what it is actually doing.
FWIW, notepad.exe is 65K and shows up as using 2.9MB. Unless you're
seeing measurable performance problems, I wouldn't worry about the
reported memory usage.
If you're worried about performance on machines with less memory than
yours and you're running NT/2000/XP, you can limit the amount of physical
memory available to the OS using the /MAXMEM switch in boot.ini - see http://www.sysinternals.com/ntw2k/info/bootini.shtml I don't know whether
that's possible for 9x.