<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringlib/unicode_format.h, branch v3.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/unicode_format.h?h=v3.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/unicode_format.h?h=v3.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2013-02-23T12:48:16Z</updated>
<entry>
<title>Remove unused defines.</title>
<updated>2013-02-23T12:48:16Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2013-02-23T12:48:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18809fa94eb5840421857ed4eabf36f5141fd874'/>
<id>urn:sha1:18809fa94eb5840421857ed4eabf36f5141fd874</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #14993: Use standard "unsigned char" instead of a unsigned char bitfield</title>
<updated>2012-06-04T20:52:12Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2012-06-04T20:52:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d7b7c7472b274c6867261b3a796c2aada9945849'/>
<id>urn:sha1:d7b7c7472b274c6867261b3a796c2aada9945849</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args)</title>
<updated>2012-05-29T10:57:52Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2012-05-29T10:57:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d3f0882dfb3a15d604de1b1620b2bf8de9d643bb'/>
<id>urn:sha1:d3f0882dfb3a15d604de1b1620b2bf8de9d643bb</id>
<content type='text'>
 * 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.
</content>
</entry>
<entry>
<title>Rename unicode_write_t structure and its methods to "_PyUnicodeWriter"</title>
<updated>2012-05-09T20:25:00Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2012-05-09T20:25:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b1a74a9c39457112a5028775a795bd178ef072a'/>
<id>urn:sha1:3b1a74a9c39457112a5028775a795bd178ef072a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #14744: Inline unicode_writer_write_char() and unicode_write_str()</title>
<updated>2012-05-09T20:24:08Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2012-05-09T20:24:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee4544c9202793aa6731d3c12c1e898b15eea94d'/>
<id>urn:sha1:ee4544c9202793aa6731d3c12c1e898b15eea94d</id>
<content type='text'>
Optimize also PyUnicode_Format(): call unicode_writer_prepare() only once
per argument.
</content>
</entry>
<entry>
<title>Close #14716: str.format() now uses the new "unicode writer" API instead of the</title>
<updated>2012-05-07T10:47:02Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2012-05-07T10:47:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=202fdca133ce8f5b0c37cca1353070e0721c688d'/>
<id>urn:sha1:202fdca133ce8f5b0c37cca1353070e0721c688d</id>
<content type='text'>
PyAccu API. For example, it makes str.format() from 25% to 30% faster on Linux.
</content>
</entry>
<entry>
<title>Issue #14387: Do not include accu.h from Python.h.</title>
<updated>2012-03-22T13:42:18Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2012-03-22T13:42:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d0acb411ef6790b5ecfbd8b6be9c2d0cc1aeb4d5'/>
<id>urn:sha1:d0acb411ef6790b5ecfbd8b6be9c2d0cc1aeb4d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)</title>
<updated>2011-12-01T02:18:59Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-12-01T02:18:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b37b17423b294ee3bf5a28b8c358ca45cf681030'/>
<id>urn:sha1:b37b17423b294ee3bf5a28b8c358ca45cf681030</id>
<content type='text'>
Create an empty string with the new Unicode API.
</content>
</entry>
<entry>
<title>Replace PyUnicodeObject type by PyObject</title>
<updated>2011-11-03T23:22:48Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-11-03T23:22:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7931d9a9514a727ac476f4850406a7d8f5e1c7f7'/>
<id>urn:sha1:7931d9a9514a727ac476f4850406a7d8f5e1c7f7</id>
<content type='text'>
 * _PyUnicode_CheckConsistency() now takes a PyObject* instead of void*
 * Remove now useless casts to PyObject*
</content>
</entry>
<entry>
<title>Fix massive slowdown in string formatting with str.format.</title>
<updated>2011-10-07T00:26:47Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2011-10-07T00:26:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4574e62c6e0f52369a67ffae0984004f9aac2ba5'/>
<id>urn:sha1:4574e62c6e0f52369a67ffae0984004f9aac2ba5</id>
<content type='text'>
Example:
./python -m timeit -s "f='{}' + '-' * 1024 + '{}'; s='abcd' * 16384" "f.format(s, s)"

-&gt; before: 547 usec per loop
-&gt; after: 13 usec per loop
-&gt; 3.2: 22.5 usec per loop
-&gt; 2.7: 12.6 usec per loop
</content>
</entry>
</feed>
