[Tutor] Memory Management etc
Liam Clarke
ml.cyresse at gmail.com
Fri May 5 14:01:03 CEST 2006
There's a specific Python gotcha involving memory allocation and
pymalloc, that'll manifest with large amounts of integers.
http://evanjones.ca/python-memory.html
And, according to that article, it's as Kent said, fixed in 2.5 :)
Regards,
Liam Clarke
On 5/5/06, Alan Gauld <alan.gauld at freenet.co.uk> wrote:
> > realised that Python doesn't release memory back to the OS - someone
> > else
>
> That's not at all unusual. In fact in most Unices no program ever
> releases
> memory to the OS - one reason you should be very careful when writing
> daemon processes! One advantage of this approach is that it speeds up
> memory allocation when the memory needs to be reused by the
> application
> since its already there waiting to be used. It also acts as a
> resilience
> feature by ensuring that running programs don;t get all their memory
> stolen by some new startup app that grabs all thats available. The
> reasoning being that its better to have a program crash early than
> late...
>
> Alan G
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list