Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 91698d8caa4b5bb6e8dbb64b156e8afe9e32cac1 authored by Victor Stinner on 25 June 2020, 12:07:40 UTC, committed by GitHub on 25 June 2020, 12:07:40 UTC
Always create the empty bytes string singleton. Optimize PyBytes_FromStringAndSize(str, 0): it no longer has to check if the empty string singleton was created or not, it is always available. Add functions: * _PyBytes_Init() * bytes_get_empty(), bytes_new_empty() * bytes_create_empty_string_singleton() * unicode_create_empty_string_singleton() _Py_unicode_state: rename empty structure member to empty_string.
1 parent 0f8ec1f
Tip revision: 91698d8caa4b5bb6e8dbb64b156e8afe9e32cac1 authored by Victor Stinner on 25 June 2020, 12:07:40 UTC
bpo-40521: Optimize PyBytes_FromStringAndSize(str, 0) (GH-21142)
bpo-40521: Optimize PyBytes_FromStringAndSize(str, 0) (GH-21142)
Tip revision: 91698d8
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.7 KB |
.gitignore | -rw-r--r-- | 1.8 KB |
.travis.yml | -rw-r--r-- | 8.7 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 630 bytes |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 67.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 | 500.2 KB |
configure.ac | -rw-r--r-- | 169.0 KB |
install-sh | -rwxr-xr-x | 15.0 KB |
netlify.toml | -rw-r--r-- | 82 bytes |
pyconfig.h.in | -rw-r--r-- | 44.5 KB |
setup.py | -rw-r--r-- | 108.6 KB |
Computing file changes ...