]> granicus.if.org Git - python/commit
bpo-30040: new empty dict uses key-sharing dict (GH-1080)
authorInada Naoki <songofacandy@gmail.com>
Tue, 12 Mar 2019 08:25:44 +0000 (17:25 +0900)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 08:25:44 +0000 (17:25 +0900)
commitf2a186712bfe726d54723eba37d80c7f0303a50b
tree66667f84b514c1550af31d16c58bc2724aa514b1
parentfc06a192fdc44225ef1cc879f615a81931ad0a85
bpo-30040: new empty dict uses key-sharing dict (GH-1080)

Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64).
It is same size to empty dict created by dict.clear().
Lib/test/test_descr.py
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2019-03-11-22-30-56.bpo-30040.W9z8X7.rst [new file with mode: 0644]
Objects/dictobject.c