[issue4868] Faster utf-8 decoding
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Jan 8 14:11:22 CET 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Very nice! It seems that you can get slightly faster by not copying the
initial char first: 's' is often already aligned at the beginning of the
string, but not after the first copy... Attached patch
(utf8decode4.patch) changes this and may enter the fast loop on the
first character.
Does this idea apply to the encode function as well?
----------
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file12650/utf8decode4.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4868>
_______________________________________
More information about the Python-bugs-list
mailing list