Message259615
The attached patch drastically speeds up PyLong_AsDouble for single digit longs:
-m timeit -s "x=2" "x*2.2 + 2 + x*2.5 + 1.0 - x / 2.0 + (x+0.1)/(x-0.1)*2 + (x+10)*(x-30)"
with patch: 0.414
without: 0.612
spectral_norm: 1.05x faster. The results are even better when paired with patch from issue #21955. |
|
Date |
User |
Action |
Args |
2016-02-05 01:55:00 | yselivanov | set | recipients:
+ yselivanov, pitrou, vstinner, serhiy.storchaka |
2016-02-05 01:55:00 | yselivanov | set | messageid: <1454637300.25.0.0795862049025.issue26288@psf.upfronthosting.co.za> |
2016-02-05 01:54:59 | yselivanov | link | issue26288 messages |
2016-02-05 01:54:59 | yselivanov | create | |
|