Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Why is C/++ faster than Python?


techb's Avatar
Member
0 0

This is not a discussion of which is better, as I already know most of your views on best one.

I know it has to do with the interpreter. But the interpreter is written in C/++, so wouldn't the execution speed of python be the same as C/++?


ghost's Avatar
0 0

As moshbat says it has to be intrepreted as compared to c/c++ which is already machine executable code. On top of that, python will introduce an overhead on top of the c overhead.