Files
cpython/Objects
Victor Stinner 772b2b09f2 Optimize bytearray % args
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.
2015-10-14 09:56:53 +02:00
..
2015-10-14 09:56:53 +02:00
2015-10-14 09:56:53 +02:00
2015-04-23 17:06:45 -04:00
2015-10-14 09:47:23 +02:00
2015-10-07 11:01:47 +00:00
2015-06-27 15:45:56 -05:00

Source files for various builtin objects