Message403494
Hmm... And there's one other issue (that wouldn't affect people until they actually start worrying about memory overhead). Right now, if you want to determine the overhead of an instance, the options are:
1. Has __dict__: sys.getsizeof(obj) + sys.getsizeof(obj.__dict__)
2. Lacks __dict__ (built-ins, slotted classes): sys.getsizeof(obj)
This change would mean even checking if something using this setup has a __dict__ creates one. Without additional introspection support, there's no way to tell the real memory usage of the instance without changing the memory usage (for the worse). |
|
Date |
User |
Action |
Args |
2021-10-08 19:09:20 | josh.r | set | recipients:
+ josh.r, methane, Mark.Shannon, corona10 |
2021-10-08 19:09:20 | josh.r | set | messageid: <1633720160.57.0.000390946026441.issue45340@roundup.psfhosted.org> |
2021-10-08 19:09:20 | josh.r | link | issue45340 messages |
2021-10-08 19:09:20 | josh.r | create | |
|