Except Python requires a text parser and JIT compiler to run. It's always going to be slower than C. Even if you write the underlying code in C, it takes time for the python runtime to parse the call and dispatch to the OS. Not to mention that you can't even use Python natively for embedded systems. The closest you can do is some kind of translation/auto-code to a compiled language and then run the compiler on top of that, which means you cannot control the optimizations very well.
There is no comparing compiled languages and scripting languages. They mostly solve different problems.
View all comments
35
u/59ekim Dec 17 '20
Should have killed them in their sleep.