This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger
Date 2016-10-22.17:35:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477157742.67.0.432701852962.issue28508@psf.upfronthosting.co.za>
In-reply-to
Content
In many Python programs much of the memory utilization is due to having many instances of the same object.  We have key-sharing dicts that reduce the cost by storing only in the incremental values.  It would be nice to have visibility to the savings.

One possible way to do this is to have sys.getsizeof(d) report only the incremental space.  That would let users make reasonable memory estimates in the form of n_instances * sizeof(vars(inst)).
History
Date User Action Args
2016-10-22 17:35:42rhettingersetrecipients: + rhettinger
2016-10-22 17:35:42rhettingersetmessageid: <1477157742.67.0.432701852962.issue28508@psf.upfronthosting.co.za>
2016-10-22 17:35:42rhettingerlinkissue28508 messages
2016-10-22 17:35:42rhettingercreate