INADA Naoki <songofaca...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32623> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com