Python Memory Manager

MartinRinehart at gmail.com MartinRinehart at gmail.com
Wed Feb 20 07:17:04 EST 2008



Steve Holden wrote:
> You have a strange idea of "nearly free" ...
>
> Extending an integer array from 100 to 150 items is a pretty puny
> operation when you compare it with the amount of data that might need to
> be moved during a compactifying garbage collection of a 20MB Python
> program image.

20 MBs = 5 M 32-bit words = 1.25 millis to move half of them on a
2GHz
machine. Don't know how much a milli costs where you live.





More information about the Python-list mailing list