[New-bugs-announce] [issue28508] Need way to expose incremental size of key sharing dicts
Raymond Hettinger
report at bugs.python.org
Sat Oct 22 13:35:42 EDT 2016
New submission from Raymond Hettinger:
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)).
----------
components: Interpreter Core
messages: 279207
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Need way to expose incremental size of key sharing dicts
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28508>
_______________________________________
More information about the New-bugs-announce
mailing list