Message80262
> ~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 |
|
Date |
User |
Action |
Args |
2009-01-20 17:57:24 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, jyasskin, benjamin.peterson, Somelauw |
2009-01-20 17:57:24 | mark.dickinson | set | messageid: <1232474244.64.0.663730845394.issue4998@psf.upfronthosting.co.za> |
2009-01-20 17:57:23 | mark.dickinson | link | issue4998 messages |
2009-01-20 17:57:23 | mark.dickinson | create | |
|