Cython: Yet another Python optimizer
November 2, 2008 § 1 Comment
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:
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.