[Python-Dev] 3.3 str timings

Łukasz Langa lukasz at langa.pl
Sun Aug 19 11:53:19 CEST 2012


Wiadomość napisana przez Antoine Pitrou <solipsis at pitrou.net> w dniu 18 sie 2012, o godz. 23:27:

> On Sat, 18 Aug 2012 17:17:14 -0400
> Terry Reedy <tjreedy at udel.edu> wrote:
>> The issue came up in python-list about string operations being slower in 
>> 3.3. (The categorical claim is false as some things are actually 
>> faster.) Some things I understand, this one I do not.
>> 
>> Win7-64, 3.3.0b2 versus 3.2.3
>> print(timeit("c in a", "c  = '…'; a = 'a'*1000+c")) # ord(c) = 8230
>> # .6 in 3.2, 1.2 in 3.3
> 
> I get opposite numbers:

Me too. 3.2 is slower for me in every case. Mac OS X 10.8.

-- 
Best regards,
Łukasz Langa
Senior Systems Architecture Engineer

IT Infrastructure Department
Grupa Allegro Sp. z o.o.

http://lukasz.langa.pl/
+48 791 080 144

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120819/89e928b5/attachment.html>


More information about the Python-Dev mailing list