Message157962
> The patch for the Python version looks good to me
Oh, but used by James Hutchison approach is faster. When I disable the
_decimal:
Unpatched:
int: 2.24056077003479
CachingDecimal: 8.49468207359314
Decimal: 187.68132972717285
With rhettinger's LBYL patch:
int: 2.1670639514923096
CachingDecimal: 8.790924310684204
Decimal: 10.426796436309814
With EAFP patch:
int: 2.1392786502838135
CachingDecimal: 8.431122303009033
Decimal: 8.263015270233154 |
|
Date |
User |
Action |
Args |
2012-04-10 16:10:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, jcea, pitrou, skrah, Jimbofbx, python-dev, Ramchandra Apte, Jim.Jewett |
2012-04-10 16:10:39 | serhiy.storchaka | link | issue14478 messages |
2012-04-10 16:10:39 | serhiy.storchaka | create | |
|