This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Kwpolska, docs@python, lemburg, leovp, rhettinger, serhiy.storchaka, steven.daprano, vstinner
Date 2017-03-05.18:04:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488737066.08.0.823089833533.issue29724@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-03-05 18:04:26serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, rhettinger, vstinner, steven.daprano, docs@python, Kwpolska, leovp
2017-03-05 18:04:26serhiy.storchakasetmessageid: <1488737066.08.0.823089833533.issue29724@psf.upfronthosting.co.za>
2017-03-05 18:04:26serhiy.storchakalinkissue29724 messages
2017-03-05 18:04:25serhiy.storchakacreate