Message257073
Previously the method was rejected in #8947. But the
speedup is quite dramatic. This is a benchmark for
converting "1.91918261298362195e-100", 1000000 repetitions:
float.as_integer_ratio: 0.548023
Decimal.as_integer_ratio: normalize=False: 2.661191
Decimal.as_integer_ratio: normalize=True: 4.382903
Fraction.from_decimal: 29.436584 |
|
Date |
User |
Action |
Args |
2015-12-27 12:13:24 | skrah | set | recipients:
+ skrah, rhettinger, terry.reedy, mark.dickinson, belopolsky, steven.daprano, serhiy.storchaka, johnwalker |
2015-12-27 12:13:24 | skrah | set | messageid: <1451218404.23.0.191576113503.issue25928@psf.upfronthosting.co.za> |
2015-12-27 12:13:24 | skrah | link | issue25928 messages |
2015-12-27 12:13:24 | skrah | create | |
|