Files
cpython/Include
Victor Stinner e215d960be Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API
* Simplify the code: replace 4 steps with one unique step using the
   _PyUnicodeWriter API. PyUnicode_Format() has the same design. It avoids to
   store intermediate results which require to allocate an array of pointers on
   the heap.
 * Use the _PyUnicodeWriter API for speed (and its convinient API):
   overallocate the buffer to reduce the number of "realloc()"
 * Implement "width" and "precision" in Python, don't rely on sprintf(). It
   avoids to need of a temporary buffer allocated on the heap: only use a small
   buffer allocated in the stack.
 * Add _PyUnicodeWriter_WriteCstr() function
 * Split PyUnicode_FromFormatV() into two functions: add
   unicode_fromformat_arg().
 * Inline parse_format_flags(): the format of an argument is now only parsed
   once, it's no more needed to have a subfunction.
 * Optimize PyUnicode_FromFormatV() for characters between two "%" arguments:
   search the next "%" and copy the substring in one chunk, instead of copying
   character per character.
2012-10-06 23:03:36 +02:00
..
2012-10-06 14:03:24 +02:00
2011-08-09 16:15:04 -05:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2011-10-15 16:38:20 +02:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2012-09-29 14:21:25 +02:00
2010-12-03 20:14:31 +00:00
2011-03-16 11:35:38 +02:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00
2010-12-03 20:14:31 +00:00