[issue31179] Speed-up dict.copy() up to 5.5 times.
STINNER Victor
report at bugs.python.org
Thu Aug 10 17:43:02 EDT 2017
STINNER Victor added the comment:
> PyDict_Copy creates a new empty dict object and then inserts key/values into it one by one.
Why not creating a "preallocated" dict in that case? _PyDict_NewPresized()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31179>
_______________________________________
More information about the Python-bugs-list
mailing list