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 rhettinger
Recipients Sergey.Kirpichev, mark.dickinson, rhettinger
Date 2021-03-06.20:45:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615063530.12.0.0345111932149.issue43420@roundup.psfhosted.org>
In-reply-to
Content
The cost to the common case for small components is about 20%:

$ python3.10 -m timeit -r11 -s 'from fractions import Fraction as F' -s 'a=F(10,3)' -s 'b=F(6, 5)' 'a * b'
200000 loops, best of 11: 1.8 usec per loop

$ python3.10 -m timeit -r11 -s 'from patched import Fraction as F' -s 'a=F(10,3)' -s 'b=F(6, 5)' 'a * b'
100000 loops, best of 11: 2.14 usec per loop
History
Date User Action Args
2021-03-06 20:45:30rhettingersetrecipients: + rhettinger, mark.dickinson, Sergey.Kirpichev
2021-03-06 20:45:30rhettingersetmessageid: <1615063530.12.0.0345111932149.issue43420@roundup.psfhosted.org>
2021-03-06 20:45:30rhettingerlinkissue43420 messages
2021-03-06 20:45:30rhettingercreate