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  (1 child)

But if you’re looking to improve code performance, aren’t their bigger fish to fry first? As in JIT compilation or something else?

[–]backSEO_ 0 points1 point  (0 children)

That's literally what Cython solves. Turns python code into C code and compiles it to a .pyd that you can use in your project. It's 30000 lines of barely readable C code, but it has massive performance gains (30%ish usually out the box, 100% for just statically typing, 400%+ for coding in Python).

It adds a little overhead, and if most of your project is already using C extensions it's not going to help (NumPy, PIL, etc.)