Cython: Yet another Python optimizer
In short, Cython generates C code by reading your Python code.
Cython is yet another solution to the question: “Dynamic languages (which include Python) are slow”. Previously there are already multiple solutions:
- Using specific C modules, for example: Numeric or python-cjson
- Psyco
- Pyrex
Basic tutorials on Cython out there:
- Using Python to calculate great_circle circumference, then optimize the same function with Cython
- How to install Cython, then use it to optimize Python function that calculates Primes
I haven’t use Cython or any other optimizer yet since it’s too premature to do so. This post is a reminder for myself, when the time is right, I will have to choose one of them.
When it comes to Python profiler, I am looking at hotshot.
References:
[...] Cython generates C code by reading your Python code. [...]
Python to C « c# to javascript, actionscript
November 2, 2008 at 10:07 pm