Dong-hee Na <donghee.n...@gmail.com> added the comment:

IMHO,

1. replace self._allocated_bytes to self._sum_allocated_bytes
2. initialize self._sum_allocated_bytes at the __init__ time.
2. if self._allocated_bytes is needed, calculate from _sum_allocated_bytes it 
will take O(1)

If the suggestion is accepted, I'd like to work on this issue.

----------
nosy: +corona10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38891>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to