memory usage

Rainer Deyke rainerd at eldwood.com
Fri Dec 5 23:31:36 EST 2003


Dave wrote:
> In another window on my Linux system I then run top.  The python
> process is now using 155 MB of memory.  Why is python using such a
> large amount of memory, nearly nearly 16 bytes for a float in this
> case?

2 lists.
10000000 floats.
10000000 integers.
20000002 reference counts.
20000002 type identifiers.
Whatever extra memory the memory manager uses to keep track of 20000002
separately allocated small blocks of memory.


-- 
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com






More information about the Python-list mailing list