Inada Naoki <songofaca...@gmail.com> added the comment:
PyDict_Copy() is not used in eval loop or calling functions. So removing clone_combined_dict() is a considerable option. Another option is to use clone_combined_dict() in dict_merge, instead of adding dict_copy2(). Pros: No performance regression. PyDict_Copy() is as fast as before. Cons: Can not "fast copy" split dict and dirty dict. I suppose most dict used by `dict(d)` or `dict.update(d)` is clean and combined. So I will implement the second option. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41431> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com