STINNER Victor <victor.stin...@haypocalc.com> added the comment:

utf8_encoder_prescan.patch: precompute the size of the output to avoid a 
PyBytes_Resize() at exit. It is much slower:

ASCII: 100000 loops, best of 3: 2.06 usec per loop
UCS-1: 10000 loops, best of 3: 123 usec per loop
UCS-2: 10000 loops, best of 3: 171 usec per loop
UCS-4: 1000 loops, best of 3: 254 usec per loop

----------
Added file: http://bugs.python.org/file24022/utf8_encoder_prescan.patch

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

Reply via email to