[issue35588] Speed up mod/divmod/floordiv for Fraction type

Stefan Behnel report at bugs.python.org
Wed Dec 26 11:01:16 EST 2018


Stefan Behnel <stefan_ml at behnel.de> added the comment:

Sure, I can add tests, but I wonder what kind of regression you expect. The algorithm is still the same as before, it's just implemented more efficiently. It does trade a bit of memory for the speed, though, since there is no longer an intermediate normalisation step, and therefore the integers can get larger during the calculation. Shouldn't make a big difference in practice, though. We are talking about bytes, not megabytes here.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35588>
_______________________________________


More information about the Python-bugs-list mailing list