some comments for Python 3000

Aahz Maruch aahz at netcom.com
Mon Aug 14 17:12:15 EDT 2000


In article <CKYl5.79558$6y5.53144075 at news2.rdc2.tx.home.com>,
Rainer Deyke <root at rainerdeyke.com> wrote:
>
>Most memory is probably not consumed by stand-alone variables, but by large
>collections (tuples/lists/dictionaries) and class instances.  For lists and
>tuples, individual contents are not named so memory usage is reduced by 50%
>or more.  For class instances, they can probably share the same strings for
>names, again drastically reducing memory usage.  Still, a Python program is
>likely to use several times as much memory as an equivalent C/C++ program.
>Each dictionary entry takes at least 8 bytes.

Maybe.  On the one hand, you've already "wasted" 4MB of RAM by starting
up Python in the first place.  On the other hand, linking in e.g.
MSVCRT.DLL is gonna waste some honking space, too....
--
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Gun-toting Naderite / socialized medicine libertarian



More information about the Python-list mailing list