Antoine Pitrou <pit...@free.fr> added the comment:

Linux, 64-bit, Intel Core i5 2500:

-> unpatched:

$ ./python -m timeit -s 'import codecs; d = codecs.utf_16_be_decode; x = (" " * 
1000).encode("utf-16be")' 'd(x)'
100000 loops, best of 3: 2.99 usec per loop

-> Victor's commit:

$ ./python -m timeit -s 'import codecs; d = codecs.utf_16_be_decode; x = (" " * 
1000).encode("utf-16be")' 'd(x)'
100000 loops, best of 3: 2.83 usec per loop

-> utf16_decoder_shift_3.patch:

$ ./python -m timeit -s 'import codecs; d = codecs.utf_16_be_decode; x = (" " * 
1000).encode("utf-16be")' 'd(x)'
1000000 loops, best of 3: 1.88 usec per loop


It seems that the wrong patch was committed.

----------
assignee:  -> haypo
resolution: fixed -> 
stage: committed/rejected -> commit review
status: closed -> open

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

Reply via email to