[issue35588] Speed up mod/divmod/floordiv for Fraction type
Josh Rosenberg
report at bugs.python.org
Fri Dec 28 09:10:03 EST 2018
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
divmod imposes higher fixed overhead in exchange for operating more efficiently on larger values.
Given the differences are small either way, and using divmod reduces scalability concerns for larger values (which are more likely to occur in code that delays normalization), I'd be inclined to stick with the simpler divmod-based implementation.
----------
nosy: +josh.r
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35588>
_______________________________________
More information about the Python-bugs-list
mailing list