Message377773
> Do we need another fast-path in long_div(a, b) when b == _PyLong_One? Just return a in this case.
I'd much prefer not. Every extra fast path check costs time for the general case, and there's no strong reason to expect people to be dividing by one. The range code seems like the right place for this optimization, not the long-divide code. |
|
Date |
User |
Action |
Args |
2020-10-01 16:26:44 | mark.dickinson | set | recipients:
+ mark.dickinson, vstinner, serhiy.storchaka, corona10, pablogsal |
2020-10-01 16:26:44 | mark.dickinson | set | messageid: <1601569604.6.0.641123320205.issue41902@roundup.psfhosted.org> |
2020-10-01 16:26:44 | mark.dickinson | link | issue41902 messages |
2020-10-01 16:26:44 | mark.dickinson | create | |
|