[issue43420] Optimize rational arithmetics

Sergey B Kirpichev report at bugs.python.org
Mon May 17 08:07:39 EDT 2021


Sergey B Kirpichev <skirpichev at gmail.com> added the comment:

> I'll have to see if the slowdown can be mitigated somehow.

Yes, for small components this is a known slowdown.  I'm trying to mitigate that case in https://github.com/python/cpython/pull/25518.  Except for the mixed mode (Fraction's+int) - this match the original performance.

----------

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


More information about the Python-bugs-list mailing list