[issue28199] Compact dict resizing is doing too much work
INADA Naoki
report at bugs.python.org
Thu Oct 6 23:33:02 EDT 2016
INADA Naoki added the comment:
Since entries array is embedded in PyDictKeysObject, we can't realloc entries.
And while values are split array, dictresize() convert split table into combine table.
Split table may have enough size of ma_values at first in typical case.
And in not typical case, split table may not be used.
So I think realloc ma_values is premature optimization, unless profiler says make_keys_shared()
is slow.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28199>
_______________________________________
More information about the Python-bugs-list
mailing list