This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Sergey.Kirpichev, asmeurer, mark.dickinson, rhettinger
Date 2021-03-07.10:54:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615114497.75.0.316020771919.issue43420@roundup.psfhosted.org>
In-reply-to
Content
Personally, I'd prefer to keep the code simplicity, and the speed for small inputs here. Python's needs aren't the same as SymPy's needs or SAGE's needs, and not all of the fractions.Fraction use-cases involve summing lots of values with incompatible denominators.

> With big denominators (~10**6) this really does matter, my local
> benchmarks suggest the order of magnitude difference for
> summation of several such numbers.

Could you give some idea of the crossover point for a single addition? At roughly what size numerator/denominator do we start seeing a performance benefit?
History
Date User Action Args
2021-03-07 10:54:57mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, Sergey.Kirpichev, asmeurer
2021-03-07 10:54:57mark.dickinsonsetmessageid: <1615114497.75.0.316020771919.issue43420@roundup.psfhosted.org>
2021-03-07 10:54:57mark.dickinsonlinkissue43420 messages
2021-03-07 10:54:57mark.dickinsoncreate