[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

Marc-Andre Lemburg report at bugs.python.org
Thu Feb 24 17:39:57 CET 2011


Marc-Andre Lemburg <mal at egenix.com> added the comment:

Alexander Belopolsky wrote:
> 
> Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
> 
> On Thu, Feb 24, 2011 at 11:31 AM, Marc-Andre Lemburg
> <report at bugs.python.org> wrote:
> ..
>> I think rather than removing any hyphens, spaces, etc. the
>> function should additionally:
>>
>>  * add hyphens whenever (they are missing and) there's switch
>>   from [a-z] to [0-9]
>>
> 
> This will do the wrong thing to the "cs" family of aliases:

We don't support those for the shortcut optimizations.

----------
title: b'x'.decode('latin1') is much slower	than	b'x'.decode('latin-1') -> b'x'.decode('latin1') is much slower than	b'x'.decode('latin-1')

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11303>
_______________________________________


More information about the Python-bugs-list mailing list