homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, pitrou, python-dev, serhiy.storchaka, skrah, vstinner
Date 2012年04月05日.20:17:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333657049.84.0.521643715582.issue14249@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年04月05日 20:17:29pitrousetrecipients: + pitrou, vstinner, benjamin.peterson, skrah, python-dev, serhiy.storchaka
2012年04月05日 20:17:29pitrousetmessageid: <1333657049.84.0.521643715582.issue14249@psf.upfronthosting.co.za>
2012年04月05日 20:17:29pitroulinkissue14249 messages
2012年04月05日 20:17:29pitroucreate

AltStyle によって変換されたページ (->オリジナル) /