]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40602: Optimize _Py_hashtable_get_ptr() (GH-20066)
authorVictor Stinner <vstinner@python.org>
Wed, 13 May 2020 03:36:23 +0000 (05:36 +0200)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 03:36:23 +0000 (05:36 +0200)
commit42bae3a3d9d79f28e6b3b619bd27296d125c4c2c
tree7eddc3adb81ca5d6caaebcee7718108c564445f5
parent5b0a30354d8a8bb39a05ce10ca4f5c78b729f25b
bpo-40602: Optimize _Py_hashtable_get_ptr() (GH-20066)

_Py_hashtable_get_entry_ptr() avoids comparing the entry hash:
compare directly keys.

Move _Py_hashtable_get_entry_ptr() just after
_Py_hashtable_get_entry_generic().
Python/hashtable.c