]> granicus.if.org Git - python/commit
Optimize built-in unicode codecs by avoiding unnecessary copying.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Sat, 27 Dec 2008 09:16:49 +0000 (09:16 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Sat, 27 Dec 2008 09:16:49 +0000 (09:16 +0000)
commit44531cb2dbb7d752b98b2b8195f759a559973612
treeafb50e4a83bc0b87475f3a5c40707e5a2c8e1fb3
parent9cb6f7f7a5afd587820ca378ad1129427f25b58f
Optimize built-in unicode codecs by avoiding unnecessary copying.

The approach used is similiar to what is currently used in the version
of unicodeobject.c in Python 2.x. The only difference is we use
_PyBytes_Resize instead of _PyString_Resize.
Objects/unicodeobject.c