This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients ezio.melotti, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-10-28.03:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477625608.09.0.261605214088.issue28531@psf.upfronthosting.co.za>
In-reply-to
Content
Actually the patch is not going to speed up the encoder but just make the memory allocation strategy better, make the memory upper bound tighter. The speedup is just a good side effect. 

> It is rather in the line of idna and punycode than UTF-8 and UTF-32.

Agree.

> This encoder was omitted form _PyBytesWriter-using optimizations for purpose. The patch complicates the implementation.

Not much. I think the implementation still remains simple.
History
Date User Action Args
2016-10-28 03:33:28xiang.zhangsetrecipients: + xiang.zhang, vstinner, ezio.melotti, serhiy.storchaka
2016-10-28 03:33:28xiang.zhangsetmessageid: <1477625608.09.0.261605214088.issue28531@psf.upfronthosting.co.za>
2016-10-28 03:33:28xiang.zhanglinkissue28531 messages
2016-10-28 03:33:27xiang.zhangcreate