Message252335
My previous abandonned attempt was the issue #17742.
"Add _PyBytesWriter API to optimize Unicode encoders"
Oh, I forgot to mention and it may also be used to optimize bytes % args. More generally, any code generating a bytes object with an unknown length is advance. Said differently: _PyBytesWriter can be used when precomputing the output length is more expensive.
str % args now uses _PyUnicodeWriter but building an Unicode string is even more complex because of the different Unicode "kinds": 1, 2 or 4 bytes per character. |
|
Date |
User |
Action |
Args |
2015-10-05 16:17:29 | vstinner | set | recipients:
+ vstinner, ezio.melotti, serhiy.storchaka |
2015-10-05 16:17:29 | vstinner | set | messageid: <1444061849.35.0.621229334835.issue25318@psf.upfronthosting.co.za> |
2015-10-05 16:17:29 | vstinner | link | issue25318 messages |
2015-10-05 16:17:29 | vstinner | create | |
|