[issue31954] Don't prevent dict optimization by coupling with OrderedDict
Serhiy Storchaka
report at bugs.python.org
Tue Nov 7 03:51:15 EST 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Thank you for your microbenchmark Inada. The difference is small, but repeating it with different modifications almost always show small speedup.
The only problem is that this change increases the size of dict object by one word (up to 3% for small dicts).
I don't know what is better place for this flag, the dict object itself or the dict keys object.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31954>
_______________________________________
More information about the Python-bugs-list
mailing list