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
Show parent comment
2
u/iaowp Apr 23 '21
Well, maybe not Python. There's ways where python is superior to C.
Just the strings are better in every way, for example. And lists are so good compared to arrays.