Author xiang.zhang
Recipients azsorkin, inada.naoki, louielu, ned.deily, pitrou, python-dev, serhiy.storchaka, vstinner, xiang.zhang
Date 2017-03-29.08:19:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490775593.21.0.4606057625.issue24821@psf.upfronthosting.co.za>
In-reply-to
Content
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! :-)
History
Date User Action Args
2017-03-29 08:19:53xiang.zhangsetrecipients: + xiang.zhang, pitrou, vstinner, ned.deily, inada.naoki, python-dev, serhiy.storchaka, azsorkin, louielu
2017-03-29 08:19:53xiang.zhangsetmessageid: <1490775593.21.0.4606057625.issue24821@psf.upfronthosting.co.za>
2017-03-29 08:19:53xiang.zhanglinkissue24821 messages
2017-03-29 08:19:53xiang.zhangcreate