Memory sizes of python objects?

Erno Kuusela erno-news at erno.iki.fi
Sun Mar 24 12:00:35 EST 2002


In article <mailman.1016923416.31517.python-list at python.org>, "Clark C
. Evans" <cce at clarkevans.com> writes:

| Is there some rule of thumb that I can use to estimate,
| for example, take the character data you have and multiply by
| a factor of 4 to find the in-memory footprint of tuples, and
| each map is 1K plus 64 bytes per entry..

make a zillion of them, check memory usage increase with ps (or
equivalent on your platform), and divide by zillion.

  -- erno



More information about the Python-list mailing list