Some reasons to avoid Cython
If you need to speed up Python, Cython is a very useful tool.
It lets you seamlessly merge Python syntax with calls into C or C++ code, making it easy to write high-performance extensions with rich Python interfaces.
That being said, Cython is not the best tool in all circumstances.
So in this article I’ll go over some of the limitations and problems with Cython, and suggest some alternatives.
A quick overview of Cython
In case you’re not familiar with Cython, here’s a quick example; technically Cython has pre-defined
free but I included them explicitly for clarity:
cdef extern from "stdlib.h":
void *malloc(size_t size