gh-101773: Optimize creation of Fractions in private methods (#101780)
This PR adds a private `Fraction._from_coprime_ints` classmethod for internal creations of `Fraction` objects, replacing the use of `_normalize=False` in the existing constructor. This speeds up creation of `Fraction` objects arising from calculations. The `_normalize` argument to the `Fraction` constructor has been removed. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
S
Sergey B Kirpichev committed
4f3786b7616dd464242b88ad6914053d409fe9d2
Parent: bb0cf8f
Committed by GitHub <noreply@github.com>
on 2/27/2023, 6:53:22 PM