diff options
author | INADA Naoki <songofacandy@gmail.com> | 2017-01-28 16:35:44 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2017-01-28 16:35:44 +0900 |
commit | 35a96a25eef03f687f727ae3b243f83937f59aa0 (patch) | |
tree | 3f28ea0f814817f8e5f2e93f8600eaefac7e59b3 /Python/pymath.c | |
parent | 49688cdaa2a9642681ce57be5312d4aa65c3dc42 (diff) | |
download | cpython-git-35a96a25eef03f687f727ae3b243f83937f59aa0.tar.gz |
Issue #29383: reduce temporary interned unicode
add_methods(), add_members(), and add_getset() used PyDict_SetItemString()
to register descriptor to the type's dict.
So descr_new() and PyDict_SetItemString() creates interned unicode from same
C string.
This patch takes interned unicode from descriptor, and use PyDict_SetItem()
instead of PyDict_SetItemString().
python_startup_no_site:
default: Median +- std dev: 12.7 ms +- 0.1 ms
patched: Median +- std dev: 12.5 ms +- 0.1 ms
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions