Mark Dickinson <dicki...@gmail.com> added the comment:

> ~44 bytes per Decimal on average with __slots__
> ~183 bytes per Decimal on average without __slots__

...and of course a difference of 140 bytes shouldn't really be
much of a surprise:

Python 3.1a0 (py3k:68809M, Jan 20 2009, 16:55:13) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getsizeof(dict())
140

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4998>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to