[issue33554] Optimize PyDictObject

INADA Naoki report at bugs.python.org
Thu May 17 20:56:07 EDT 2018


INADA Naoki <songofacandy at gmail.com> added the comment:

> A little performance optimization, but I think the key is not in
performance optimization.
> The semantics of the dictresize function are not uniform, and it is
inconvenient for others to read. The dictresize function should be split to
make it just resize. What do you think?

I can't understand.
What dictresize does now other than resize?
Could you show how dictresize can be simplified when clear_dummy_keys() is
added?

Anyway, current my opinion is -1 on this.
We can add similar function when fixing Issue31954.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33554>
_______________________________________


More information about the Python-bugs-list mailing list