Victor Stinner
|
3b1a74a9c3
|
Rename unicode_write_t structure and its methods to "_PyUnicodeWriter"
|
2012-05-09 22:25:00 +02:00 |
Victor Stinner
|
ee4544c920
|
Issue #14744: Inline unicode_writer_write_char() and unicode_write_str()
Optimize also PyUnicode_Format(): call unicode_writer_prepare() only once
per argument.
|
2012-05-09 22:24:08 +02:00 |
Victor Stinner
|
202fdca133
|
Close #14716: str.format() now uses the new "unicode writer" API instead of the
PyAccu API. For example, it makes str.format() from 25% to 30% faster on Linux.
|
2012-05-07 12:47:02 +02:00 |
Antoine Pitrou
|
d0acb411ef
|
Issue #14387: Do not include accu.h from Python.h.
|
2012-03-22 14:42:18 +01:00 |
Victor Stinner
|
b37b17423b
|
Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
Create an empty string with the new Unicode API.
|
2011-12-01 03:18:59 +01:00 |
Victor Stinner
|
7931d9a951
|
Replace PyUnicodeObject type by PyObject
* _PyUnicode_CheckConsistency() now takes a PyObject* instead of void*
* Remove now useless casts to PyObject*
|
2011-11-04 00:22:48 +01:00 |
Antoine Pitrou
|
4574e62c6e
|
Fix massive slowdown in string formatting with str.format.
Example:
./python -m timeit -s "f='{}' + '-' * 1024 + '{}'; s='abcd' * 16384" "f.format(s, s)"
-> before: 547 usec per loop
-> after: 13 usec per loop
-> 3.2: 22.5 usec per loop
-> 2.7: 12.6 usec per loop
|
2011-10-07 02:26:47 +02:00 |
Antoine Pitrou
|
dbf697ae5c
|
Fix compilation warnings under 64-bit Windows
|
2011-10-06 15:34:41 +02:00 |
Martin v. Löwis
|
d63a3b8beb
|
Implement PEP 393.
|
2011-09-28 07:41:54 +02:00 |