Hi
This might be of interest. Basically try your program with python 2.5 and see if it gets any better.
http://evanjones.ca/python-memory.html
Regards,
···
–
Rune Devik
http://www.garageinnovation.org
On 8/27/07, Robert VERGNES robert.vergnes@yahoo.fr wrote:
Hello,
I have a python issue and not a wxpython… But as the wxpython mailing is is one of the best … you might have an idea…
I have made the following small test:
Before starting my test my UsedPhysicalMemory(PF): 555Mb
tf=range(0,10000000) PF: 710Mb ( so 155Mb for my List)
tf=[0,1,2,3,4,5] PF: 672Mb (Why? Why the remaining 117Mb is not freed?)
del tf PF: 672Mb (unused memory not freed)
So changing the list contents and/or deleting the list changes nothing…from a memory point of view.
This is a problem as I have several applications/threads competing for memory share. (ie wxpython app).
So how can I force Python to clean the memory and free the memory
that is not used?
Any ideas is welcome.
Thanx
Robert
Ne gardez plus qu’une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
well, actually I get the same results as you do with python 2.5 as well…
···
On 8/27/07, Rune Devik <rune.devik@gmail.com > wrote:
Hi
This might be of interest. Basically try your program with python 2.5 and see if it gets any better.
http://evanjones.ca/python-memory.html
Regards,
–
Rune Devik
http://www.garageinnovation.org
On 8/27/07, Robert VERGNES < > robert.vergnes@yahoo.fr> wrote:
Hello,
I have a python issue and not a wxpython… But as the wxpython mailing is is one of the best … you might have an idea…
I have made the following small test:
Before starting my test my UsedPhysicalMemory(PF): 555Mb
tf=range(0,10000000) PF: 710Mb ( so 155Mb for my List)
tf=[0,1,2,3,4,5] PF: 672Mb (Why? Why the remaining 117Mb is not freed?)
del tf PF: 672Mb (unused memory not freed)
So changing the list contents and/or deleting the list changes nothing…from a memory point of view.
This is a problem as I have several applications/threads competing for memory share. (ie wxpython app).
So how can I force Python to clean the memory and free the memory
that is not used?
Any ideas is welcome.
Thanx
Robert
Ne gardez plus qu’une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
–
Rune Devik
http://www.garageinnovation.org