Message242017
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 |
|
Date |
User |
Action |
Args |
2015-04-25 15:35:48 | rhettinger | set | recipients:
+ rhettinger |
2015-04-25 15:35:48 | rhettinger | set | messageid: <1429976148.71.0.723418409386.issue24059@psf.upfronthosting.co.za> |
2015-04-25 15:35:48 | rhettinger | link | issue24059 messages |
2015-04-25 15:35:48 | rhettinger | create | |
|