Zach Byrne added the comment:

So I'm trying something pretty similar to Victor's pseudo-code and just using 
timeit to look for speedups
timeit('x+x', 'x=10', number=10000000)
before:
1.1934231410000393
1.1988609210002323
1.1998214110003573
1.206968028999654
1.2065417159997196

after:
1.1698650090002047
1.1705158909999227
1.1752884750003432
1.1744818619999933
1.1741297110002051
1.1760422649999782

Small improvement. Haven't looked at optimizing BINARY_SUBSCR yet.

----------
keywords: +patch
nosy: +zbyrne
Added file: http://bugs.python.org/file35961/21955.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21955>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to