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-03-21 15:04:43 +01:00
2013-11-16 00:16:58 +01:00
2013-08-26 22:28:21 +02:00
2013-10-05 16:28:04 -04:00
2015-02-03 01:25:42 +02:00
2015-10-14 09:56:53 +02:00
2015-10-13 00:11:21 +02:00
2015-05-11 22:57:16 -04:00
2015-03-18 21:53:15 +02:00
2015-05-09 11:44:30 -04:00
2014-07-07 18:49:30 -04:00
2013-08-17 16:57:41 +03:00
2015-10-02 12:47:11 +03:00
2015-01-13 09:17:24 -05:00
2015-03-06 14:47:02 -08:00
2015-04-12 00:26:27 -04:00
2013-12-13 02:01:38 +01:00
2015-06-22 12:19:30 -04:00
2015-05-11 22:57:16 -04:00
2015-03-21 09:25:53 +02:00
2013-12-10 01:20:39 +01:00
2015-05-22 00:41:57 -07:00
2013-08-27 19:40:23 +03:00
2015-10-09 22:43:24 +02:00
2013-10-19 21:03:34 +03:00
2015-01-29 14:29:51 +01:00
2015-04-03 19:42:32 +03:00
2015-06-02 19:06:47 -04:00
2015-06-02 19:06:47 -04:00
2015-03-21 09:25:53 +02:00
2015-08-26 13:03:57 -04:00
2014-05-02 22:31:14 +02:00
2015-06-01 22:59:08 -06:00
2015-06-22 12:19:30 -04:00
2014-10-10 11:55:41 +02:00
2013-10-19 21:03:34 +03:00
2015-09-13 15:36:07 +01:00
2015-09-18 15:06:34 +02:00
2014-11-20 21:39:37 +10:00
2015-07-03 01:04:23 -04:00
2013-05-25 05:25:48 -07:00
2014-01-03 21:36:49 +01:00
2014-11-20 21:39:37 +10:00
2014-05-14 17:24:35 +02:00
2015-08-15 18:33:45 -04:00
2014-06-02 21:57:10 +02:00
2015-04-14 09:35:51 +03:00
2015-09-18 15:06:34 +02:00
2015-04-26 00:41:00 +00:00
2015-09-19 14:51:32 -04:00
2015-05-29 22:21:39 -06:00
2015-05-09 11:44:30 -04:00
2015-09-18 13:36:17 +02:00
2015-08-01 15:21:41 -07:00
2015-03-18 21:53:15 +02:00
2013-07-22 22:24:54 +02:00
2015-04-27 21:44:22 -04:00
2014-11-15 13:21:37 +02:00
2015-05-11 22:57:16 -04:00
2015-06-21 15:59:46 +03:00
2015-06-02 19:06:47 -04:00
2015-03-18 21:53:15 +02:00
2015-10-09 00:33:49 +02:00
2014-01-03 21:36:49 +01:00
2013-10-08 19:50:26 +02:00