Python memory handling

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu May 31 08:16:31 EDT 2007


In <1180611604.247696.149060 at h2g2000hsg.googlegroups.com>, frederic.pica
wrote:

> So as I can see, python maintain a memory pool for lists.
> In my first example, if I reparse the xml file, the memory doesn't
> grow very much (0.1 Mb precisely)
> So I think I'm right with the memory pool.
> 
> But is there a way to force python to release this memory ?!

AFAIK not.  But why is this important as long as the memory consumption
doesn't grow constantly?  The virtual memory management of the operating
system usually takes care that only actually used memory is in physical
RAM.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list