summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-12 11:31:59 (GMT)
committerGitHub <noreply@github.com>2020-05-12 11:31:59 (GMT)
commit7c6e97077525f0ad3cfa0971028313b9079449fd (patch)
treec97302b548f2ff97e4a275cf004e116b5c1b91df /Objects
parent74ea6b5a7501fb393cd567fb21998d0bfeeb267c (diff)
downloadcpython-7c6e97077525f0ad3cfa0971028313b9079449fd.zip
cpython-7c6e97077525f0ad3cfa0971028313b9079449fd.tar.gz
cpython-7c6e97077525f0ad3cfa0971028313b9079449fd.tar.bz2
bpo-40602: Optimize _Py_hashtable for pointer keys (GH-20051)
Optimize _Py_hashtable_get() and _Py_hashtable_get_entry() for pointer keys: * key_size == sizeof(void*) * hash_func == _Py_hashtable_hash_ptr * compare_func == _Py_hashtable_compare_direct Changes: * Add get_func and get_entry_func members to _Py_hashtable_t * Convert _Py_hashtable_get() and _Py_hashtable_get_entry() functions to static nline functions. * Add specialized get and get entry for pointer keys.
Diffstat (limited to 'Objects')
0 files changed, 0 insertions, 0 deletions