Xiang Zhang added the comment:
I can't give a "realistic" example. A more meaningful example may be:
'。', '\u3002', the Chinese period which used in almost every paragraph,
'地', '\u5730', which is a common used word.
./python3 -m perf timeit -s 's = "你好,我叫李雷。"*1000' 's.find("地")'
Mean +- std dev: 6.65 us +- 0.27 us
Mean +- std dev: 4.08 us +- 0.22 us
It works! :-)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24821>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com