On 27.09.12 18:06, Ian Kelly wrote:
I understand ISO 8859-15 (Latin-9) to be the preferred Latin character
set for French, as it includes the Euro sign as well as a few
characters that are not in Latin-1 but are nonetheless infrequently
found in French.

Even for Latin-9 Python 3.3 can be a little faster 3.2.

$ ./python -m timeit -s "s=bytes(range(256))*100"  "s.decode('latin1')"

Python 2.7: 105 usec
Python 3.2: 20.4 usec
Python 3.3: 4.98 usec

$ ./python -m timeit -s "s=bytes(range(256))*100"  "s.decode('latin9')"

Python 2.7: 700 usec
Python 3.2: 94.6 usec
Python 3.3: 93.2 usec


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to