Message279207
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)). |
|
Date |
User |
Action |
Args |
2016-10-22 17:35:42 | rhettinger | set | recipients:
+ rhettinger |
2016-10-22 17:35:42 | rhettinger | set | messageid: <1477157742.67.0.432701852962.issue28508@psf.upfronthosting.co.za> |
2016-10-22 17:35:42 | rhettinger | link | issue28508 messages |
2016-10-22 17:35:42 | rhettinger | create | |
|