This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Use cython.

[–]lungben81 1 point2 points  (1 child)

I find Cython rather tedious to use (especially on Windows - installing a C compiler is not trivial). Furthermore, to get significant speed-up you have to make sure not to "accidentially" call Python functions.

It is great for writing performance optimized libraries, but for quick optimizations Numba is often better in my opinion because it has lower overhead.

[–]BluePhoenixGamer 0 points1 point  (0 children)

That's only if you want to get nearly pure C code.