commit | 44531cb2dbb7d752b98b2b8195f759a559973612 | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Sat Dec 27 09:16:49 2008 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Sat Dec 27 09:16:49 2008 +0000 |
tree | afb50e4a83bc0b87475f3a5c40707e5a2c8e1fb3 | |
parent | 9cb6f7f7a5afd587820ca378ad1129427f25b58f [diff] |
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.