Message124274
Indeed, getsizeof() on containers only gives the amount of memory consumed by the container itself (this can be difficult to figure out externally for potentially sparse containers like dicts), but leaves the question of the size of the referenced objects open.
Exposing the result of sys.getsizeof() on the cache may not be a bad idea, but the question would be which use cases are handled by that additional information which aren't adequately covered by the simple count of the cache entries. |
|
Date |
User |
Action |
Args |
2010-12-18 06:11:39 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, pitrou |
2010-12-18 06:11:39 | ncoghlan | set | messageid: <1292652699.49.0.598818711003.issue10725@psf.upfronthosting.co.za> |
2010-12-18 06:11:37 | ncoghlan | link | issue10725 messages |
2010-12-18 06:11:37 | ncoghlan | create | |
|