Memory footpring of python objects

Marco Mariani marco at
Wed Apr 22 11:56:38 CEST 2009

BlueBird wrote:

> I have a program that manages several thousands instances of one
> object. To reduce memory
> consumption, I want of course that specific object to have the
> smallest memory footpring possible.

Have you thought of using something like the flyweight pattern and a 
compact data representation like a numpy array?

More information about the Python-list mailing list