Mark Dickinson <dicki...@gmail.com> added the comment:

> 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.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41902>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to