• Victor Stinner's avatar
    Optimize bytearray % args · 772b2b09
    Victor Stinner yazdı
    Issue #25399: Don't create temporary bytes objects: modify _PyBytes_Format() to
    create work directly on bytearray objects.
    
    * Rename _PyBytes_Format() to _PyBytes_FormatEx() just in case if something
      outside CPython uses it
    * _PyBytes_FormatEx() now uses (char*, Py_ssize_t) for the input string, so
      bytearray_format() doesn't need tot create a temporary input bytes object
    * Add use_bytearray parameter to _PyBytes_FormatEx() which is passed to
      _PyBytesWriter, to create a bytearray buffer instead of a bytes buffer
    
    Most formatting operations are now between 2.5 and 5 times faster.
    772b2b09
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...