Xiang Zhang added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28531>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to