Staging
v0.5.1
https://github.com/python/cpython
Revision 7c6e97077525f0ad3cfa0971028313b9079449fd authored by Victor Stinner on 12 May 2020, 11:31:59 UTC, committed by GitHub on 12 May 2020, 11:31:59 UTC
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.
1 parent 74ea6b5
History
Tip revision: 7c6e97077525f0ad3cfa0971028313b9079449fd authored by Victor Stinner on 12 May 2020, 11:31:59 UTC
bpo-40602: Optimize _Py_hashtable for pointer keys (GH-20051)
Tip revision: 7c6e970
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.8 KB
.gitignore -rw-r--r-- 1.8 KB
.travis.yml -rw-r--r-- 8.2 KB
CODE_OF_CONDUCT.md -rw-r--r-- 630 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 68.4 KB
README.rst -rw-r--r-- 9.9 KB
aclocal.m4 -rw-r--r-- 13.1 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 497.6 KB
configure.ac -rw-r--r-- 167.1 KB
install-sh -rwxr-xr-x 15.0 KB
netlify.toml -rw-r--r-- 82 bytes
pyconfig.h.in -rw-r--r-- 44.4 KB
setup.py -rw-r--r-- 103.4 KB

README.rst

back to top