homepage

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 rhettinger
Recipients rhettinger
Date 2015年04月25日.15:35:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429976148.71.0.723418409386.issue24059@psf.upfronthosting.co.za>
In-reply-to
Content
Replace all the _sqrt(x) calls with x ** 0.5, improving the visual appearance and providing a modest speed improvement.
$ python3 -m timeit -s 'from math import sqrt' 'sqrt(3.14)'
10000000 loops, best of 3: 0.032 usec per loop
$ python3 -m timeit -s 'from math import sqrt' '3.14 ** 0.5'
100000000 loops, best of 3: 0.0101 usec per loop
History
Date User Action Args
2015年04月25日 15:35:48rhettingersetrecipients: + rhettinger
2015年04月25日 15:35:48rhettingersetmessageid: <1429976148.71.0.723418409386.issue24059@psf.upfronthosting.co.za>
2015年04月25日 15:35:48rhettingerlinkissue24059 messages
2015年04月25日 15:35:48rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /