Message294442
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. |
|
Date |
User |
Action |
Args |
2017-05-25 07:20:02 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan, pitrou, pmoody, gescheit |
2017-05-25 07:20:02 | serhiy.storchaka | set | messageid: <1495696802.49.0.532984259434.issue25430@psf.upfronthosting.co.za> |
2017-05-25 07:20:02 | serhiy.storchaka | link | issue25430 messages |
2017-05-25 07:20:02 | serhiy.storchaka | create | |
|