Author vstinner
Recipients inada.naoki, 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:03vstinnersetrecipients: + vstinner, rhettinger, inada.naoki, serhiy.storchaka
2016-12-14 15:15:03vstinnersetmessageid: <1481728503.16.0.0689923475908.issue28959@psf.upfronthosting.co.za>
2016-12-14 15:15:03vstinnerlinkissue28959 messages
2016-12-14 15:15:02vstinnercreate