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 yselivanov
Recipients pitrou, serhiy.storchaka, vstinner, yselivanov
Date 2016-02-05.01:54:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454637300.25.0.0795862049025.issue26288@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-05 01:55:00yselivanovsetrecipients: + yselivanov, pitrou, vstinner, serhiy.storchaka
2016-02-05 01:55:00yselivanovsetmessageid: <1454637300.25.0.0795862049025.issue26288@psf.upfronthosting.co.za>
2016-02-05 01:54:59yselivanovlinkissue26288 messages
2016-02-05 01:54:59yselivanovcreate