Inada Naoki <songofaca...@gmail.com> added the comment:
I created two PRs. PR 12307 just optimize inserting to empty dict. PR 12308 has same optimization and removes shared empty key (ma_keys = NULL). I confirmed PR 12307 is faster than before about `d = {}; d["a"]=None`. I'll benchmark them later. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30040> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com