Message227598
> Any optimization requires a benchmark. What is the speedup?
I gave numbers in ticket #22464.
"""
Since many Fraction input values can already be normalised for some reason, the following change shaves off almost 30% of the calls to PyNumber_InPlaceFloorDivide() in the telco benchmark during Fraction instantiation according to callgrind, thus saving 20% of the CPU instructions that go into tp_new().
"""
I then proposed to move this into the PyLong type in general, rather than letting Fraction itself do it less efficiently. |
|
Date |
User |
Action |
Args |
2014-09-26 09:08:42 | scoder | set | recipients:
+ scoder, mark.dickinson, pitrou, vstinner, serhiy.storchaka |
2014-09-26 09:08:42 | scoder | set | messageid: <1411722522.94.0.131797780925.issue22501@psf.upfronthosting.co.za> |
2014-09-26 09:08:42 | scoder | link | issue22501 messages |
2014-09-26 09:08:42 | scoder | create | |
|