by coppsilgold · 6mo ago · 0 comments
If more than a few percent of execution time is spent in Python you are probably doing it wrong.
Personally I don't even understand why Cython is a thing, just write performance critical functions in other languages:
<https://pypi.org/project/rustimport/>
<https://pypi.org/project/import-zig/>
Note that you can even start threads in those languages and use function calls as pseudo-RPC. All without an overly complex build system.
Also tools like numba can beat them all at way less effort.
Imho, dropping into other languages should be the last resort in any project.
Already available on GCC 16.
Every program that starts with 1% of Python writes more Python and gets to 20,40, 60 and than 99% of it.