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 gescheit, ncoghlan, pitrou, pmoody, serhiy.storchaka
Date 2017-05-25.07:20:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495696802.49.0.532984259434.issue25430@psf.upfronthosting.co.za>
In-reply-to
Content
I confirm that the proposed code is equivalent to the existing code and is faster. The largest part (~70%) of the speed up is caused by replacing int() calls with direct attribute access to _ip. I'm wondering whether it is worth to get rid of int() calls in the rest of the code.

The overhead of using int():

* Looking up the "int" name in globals (failed).
* Looking up the "int" name in builtins.
* Calling the C function.
* Calling the Python function.
History
Date User Action Args
2017-05-25 07:20:02serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, pitrou, pmoody, gescheit
2017-05-25 07:20:02serhiy.storchakasetmessageid: <1495696802.49.0.532984259434.issue25430@psf.upfronthosting.co.za>
2017-05-25 07:20:02serhiy.storchakalinkissue25430 messages
2017-05-25 07:20:02serhiy.storchakacreate