cpython/Python
Victor Stinner d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args)
* Formatting string, int, float and complex use the _PyUnicodeWriter API. It
   avoids a temporary buffer in most cases.
 * Add _PyUnicodeWriter_WriteStr() to restore the PyAccu optimization: just
   keep a reference to the string if the output is only composed of one string
 * Disable overallocation when formatting the last argument of str%args and
   str.format(args)
 * Overallocation allocates at least 100 characters: add min_length attribute
   to the _PyUnicodeWriter structure
 * Add new private functions: _PyUnicode_FastCopyCharacters(),
   _PyUnicode_FastFill() and _PyUnicode_FromASCII()

The speed up is around 20% in average.
2012-05-29 12:57:52 +02:00
..
_warnings.c
asdl.c Widen ASDL sequences to Py_ssize_t lengths to better match PEP 353. 2012-05-15 14:45:03 +02:00
ast.c
bltinmodule.c
ceval.c PEP 415: Implement suppression of __context__ display with an exception attribute 2012-05-14 22:09:31 -07:00
ceval_gil.h
codecs.c Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) 2012-04-27 13:55:39 +02:00
compile.c Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue 2012-05-27 18:17:07 +10:00
dtoa.c Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf'). 2012-04-29 15:31:56 +01:00
dup2.c
dynamic_annotations.c
dynload_aix.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_dl.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_hpux.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_next.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_os2.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_shlib.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_stub.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_win.c Fix #13210. Port the Windows build from VS2008 to VS2010. 2012-05-13 11:19:23 -05:00
errors.c Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo. 2012-04-19 14:33:43 +02:00
fileutils.c
formatter_unicode.c Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 2012-05-29 12:57:52 +02:00
freeze_importlib.py Avoid "warning: no newline at end of file" in importlib.h. 2012-05-16 12:58:04 +02:00
frozen.c
frozenmain.c
future.c
getargs.c PyArg_Parse*("U"): ensure that the Unicode string is ready 2012-05-29 12:30:29 +02:00
getcompiler.c
getcopyright.c
getcwd.c
getopt.c
getplatform.c
getversion.c
graminit.c
import.c Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue 2012-05-27 18:17:07 +10:00
importdl.c Issue #14599: Generalize a test for ImportError.path and add support 2012-04-20 15:22:50 -04:00
importdl.h Issue #13959: Move module type constants to Lib/imp.py. 2012-05-04 16:13:30 -04:00
importlib.h Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports 2012-05-27 17:49:58 +10:00
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
peephole.c
pyarena.c
pyctype.c
pyfpe.c
pymath.c
pystate.c Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py. 2012-04-29 14:38:11 -04:00
pystrcmp.c
pystrtod.c Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf'). 2012-04-29 15:31:56 +01:00
Python-ast.c use Py_ssize_t for ast sequence lengths 2012-05-15 10:10:27 -07:00
pythonrun.c PEP 415: Implement suppression of __context__ display with an exception attribute 2012-05-14 22:09:31 -07:00
pytime.c Issue #14127: Add ns= parameter to utime, futimes, and lutimes. 2012-05-03 00:30:07 -07:00
random.c
sigcheck.c
strdup.c
structmember.c
symtable.c Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue 2012-05-27 18:17:07 +10:00
sysmodule.c Implemented PEP 405 (Python virtual environments). 2012-05-26 03:45:29 +01:00
thread.c
thread_foobar.h
thread_nt.h
thread_os2.h
thread_pth.h
thread_pthread.h
traceback.c