]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40575: Avoid unnecessary overhead in _PyDict_GetItemIdWithError() (GH-20018)
authorscoder <stefan_ml@behnel.de>
Mon, 11 May 2020 04:04:31 +0000 (06:04 +0200)
committerGitHub <noreply@github.com>
Mon, 11 May 2020 04:04:31 +0000 (06:04 +0200)
commit6067d4bc3ce5ff4cfa5b47ceecc84a3941bc031c
tree3520bec8a7bddf3edfda8aa888306ee841f1eaac
parent5b956ca42de37c761562e9c9aeb96a0e67606e33
bpo-40575: Avoid unnecessary overhead in _PyDict_GetItemIdWithError() (GH-20018)

Avoid unnecessary overhead in _PyDict_GetItemIdWithError() by calling
_PyDict_GetItem_KnownHash() instead of the more generic PyDict_GetItemWithError(),
since we already know the hash of interned strings.
Objects/dictobject.c