Re:Faster Natural Language Processing in Python
by dr_zoidberg on Wednesday June 13, 2018 @10:12AM
(#17303194)
Cython is compiled C that uses CPythons objects. If you can distill your algorithm to a full C(ython) implementation, you get CPython objects + C code, which is then compiled with the (appropriate version of the) system compiler.
So for example, from this little Cython code:
You get the following C code: That compiles and becomes part of a C-extension that you can load with "import module" from within Python.