Message227488
I created issue 22486 about the gcd() performance. I think we can close this ticket - I don't see any more obvious low hanging fruit and future findings can have their own ticket.
Out of interest, I modified the fractions module to compile Fraction into an extension type with Cython. For the benchmark, it currently gives me a 10x speedup over the original fractions module in Py3.4. I uploaded my initial attempt to PyPI and it's on github:
https://pypi.python.org/pypi/quicktions
https://github.com/scoder/quicktions
That makes a C implementation of Fraction generally worth considering for CPython. |
|
Date |
User |
Action |
Args |
2014-09-24 20:51:54 | scoder | set | recipients:
+ scoder, georg.brandl, rhettinger, mark.dickinson, python-dev, serhiy.storchaka |
2014-09-24 20:51:54 | scoder | set | messageid: <1411591914.59.0.150096486767.issue22464@psf.upfronthosting.co.za> |
2014-09-24 20:51:54 | scoder | link | issue22464 messages |
2014-09-24 20:51:54 | scoder | create | |
|