◐ Shell
clean mode source ↗

Message 172628 - Python tracker

Message172628

Author serhiy.storchaka
Recipients BreamoreBoy, ezio.melotti, kushal.das, loewis, serhiy.storchaka, thomaslee, vstinner
Date 2012-10-11.08:36:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <201210111136.10301.storchaka@gmail.com>
In-reply-to <1349901520.73.0.991489146519.issue16061@psf.upfronthosting.co.za>
Content
> I compared performances of the two methods: dummy loop vs find.

You can hybridize them. First just compare chars and if not match then use 
memcmp(). This speed up the case of repeated chars.
Files
File name Uploaded
unicode_2.patch serhiy.storchaka, 2012-10-11.08:36:27
History
Date User Action Args
2012-10-11 08:36:27serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, vstinner, thomaslee, ezio.melotti, BreamoreBoy, kushal.das
2012-10-11 08:36:27serhiy.storchakalinkissue16061 messages
2012-10-11 08:36:27serhiy.storchakacreate