Serhiy Storchaka added the comment:

I have got 15% speed up.

But two of my variants (the first and the second) speed up the calculation by 
2.8 and 3.6 times correspondingly. It doesn't make sense to talk about 
microoptimization of the example if rewriting it without using iterator tools 
can get much larger speed up.

The example still is good for the case when use vectors of large dimensions. 
But in that case the effect of the microoptimization is dwarfed by the time of 
iteration and calculation.

----------

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

Reply via email to