DEV Community

Discussion on: Help me with points to be considered while coding to avoid execution overhead in Python

Collapse
 
veky profile image
Veky

If you're really concerned about it, the answer is simple: don't write in Python. There are many languages that are better suited to "avoiding execution overhead". It was never a design goal for Python, it was designed with completely different goals in mind.

Collapse
 
vishwasmahadev profile image
Vishwas Mahadev

I am willing to know, could you enlighten me with those goals please

Collapse
 
veky profile image
Veky

In a nutshell: Python was designed to be executable pseudocode. That is, a tool for explaining algorithms. You don't "avoid execution overhead" in pseudocode, do you? :-) What you can do, is study the complexity of algorithms, but that's completely orthogonal.