diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-08 22:33:49 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-08 22:33:49 (GMT) |
commit | fdfbf781140f22619b0ef6bfeac792496774bb69 (patch) | |
tree | 880a43536436cac5fc80543f4d29459b7429a449 /Modules/makexp_aix | |
parent | 08ec6d9611b612182808bdf1d30cdd786cde9c3e (diff) | |
download | cpython-fdfbf781140f22619b0ef6bfeac792496774bb69.zip cpython-fdfbf781140f22619b0ef6bfeac792496774bb69.tar.gz cpython-fdfbf781140f22619b0ef6bfeac792496774bb69.tar.bz2 |
Issue #25318: Add _PyBytesWriter API
Add a new private API to optimize Unicode encoders. It uses a small buffer
allocated on the stack and supports overallocation.
Use _PyBytesWriter API for UCS1 (ASCII and Latin1) and UTF-8 encoders. Enable
overallocation for the UTF-8 encoder with error handlers.
unicode_encode_ucs1(): initialize collend to collstart+1 to not check the
current character twice, we already know that it is not ASCII.
Diffstat (limited to 'Modules/makexp_aix')
0 files changed, 0 insertions, 0 deletions