Author mrabarnett
Recipients ezio.melotti, mrabarnett, pitrou, serhiy.storchaka, tim.peters, vstinner
Date 2013-08-09.20:03:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376078581.14.0.745107200042.issue18685@psf.upfronthosting.co.za>
In-reply-to
Content
With the patch the results are:

C:\Python34\python.exe -m timeit -s "import re; f = re.compile(b'abc').search; x = b'x'*100000" "f(x)" 
10000 loops, best of 3: 113 usec per loop

C:\Python34\python.exe -m timeit -s "import re; f = re.compile('abc').search; x = 'x'*100000" "f(x)" 
10000 loops, best of 3: 113 usec per loop

C:\Python34\python.exe -m timeit -s "import re; f = re.compile('abc').search; x = '\u20ac'*100000" "f(x)" 
10000 loops, best of 3: 113 usec per loop

I'm most impressed! :-)
History
Date User Action Args
2013-08-09 20:03:01mrabarnettsetrecipients: + mrabarnett, tim.peters, pitrou, vstinner, ezio.melotti, serhiy.storchaka
2013-08-09 20:03:01mrabarnettsetmessageid: <1376078581.14.0.745107200042.issue18685@psf.upfronthosting.co.za>
2013-08-09 20:03:01mrabarnettlinkissue18685 messages
2013-08-09 20:03:01mrabarnettcreate