Message388215
Without the guards the incremental cost drops to 10%.
$ python3.10 -m timeit -r11 -s 'from patched_noguards import Fraction as F' -s 'a=F(10,3)' -s 'b=F(6, 5)' 'a * b'
100000 loops, best of 11: 2.02 usec per loop |
|
Date |
User |
Action |
Args |
2021-03-06 20:58:13 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, Sergey.Kirpichev |
2021-03-06 20:58:13 | rhettinger | set | messageid: <1615064293.26.0.502414893223.issue43420@roundup.psfhosted.org> |
2021-03-06 20:58:13 | rhettinger | link | issue43420 messages |
2021-03-06 20:58:13 | rhettinger | create | |
|