Message198111
> It's why sys.getsizeof() is a low-level tool. We need high-level tool
> in the stdlib. Even imperfect recursive counting will be better than
> confusing for novices sys.getsizeof().
Ok, but I need to see a satisfying version of "gettotalsizeof" before
I'm convinced (see below).
> Here is improved version of gettotalsizeof():
>
[...]
> >>> gettotalsizeof(gettotalsizeof)
> 60854
Why that big? Does it make sense?
What if say, a large object is "shared" between many small objects?
Should it count towards the memory size of any of those small objects?
What if that object is actually immortal (it is also a module global,
for example)? |
|
Date |
User |
Action |
Args |
2013-09-19 18:39:55 | pitrou | set | recipients:
+ pitrou, loewis, rhettinger, amaury.forgeotdarc, serhiy.storchaka |
2013-09-19 18:39:55 | pitrou | link | issue19048 messages |
2013-09-19 18:39:55 | pitrou | create | |
|