Message283197
| Author |
vstinner |
| Recipients |
methane, rhettinger, serhiy.storchaka, vstinner |
| Date |
2016年12月14日.15:15:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1481728503.16.0.0689923475908.issue28959@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I wrote a short script to check the size of dict:
---
import sys
def size(obj):
print(sys.getsizeof(obj))
size({})
size({i:i for i in range(3)})
size({i:i for i in range(10)})
size({i:i for i in range(100)})
---
On Linux x86_64, the sizes don't change with the patch:
240
240
368
4704
A size increase would be a regression, but it's not the case, so it's fine ;-) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年12月14日 15:15:03 | vstinner | set | recipients:
+ vstinner, rhettinger, methane, serhiy.storchaka |
| 2016年12月14日 15:15:03 | vstinner | set | messageid: <1481728503.16.0.0689923475908.issue28959@psf.upfronthosting.co.za> |
| 2016年12月14日 15:15:03 | vstinner | link | issue28959 messages |
| 2016年12月14日 15:15:02 | vstinner | create |
|