[issue32623] Resize dict on del/pop
INADA Naoki
report at bugs.python.org
Tue Jan 23 20:53:52 EST 2018
INADA Naoki <songofacandy at gmail.com> added the comment:
For insert/pop loop, reduce table size aggressively on pop may cause
performance regression. So reducing size should be conservative.
So my opinion is:
* When dict size become 0, make the dict shared-empty, like dict.clear()
* When (dict size < dk_size/8), call insertion_resize()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32623>
_______________________________________
More information about the Python-bugs-list
mailing list