Improve Your Python Application Runtime

Himanshu Jain (~himanshu58)


7

Votes

Description:

Python is an interpreted and dynamically typed language. It sacrifices a little bit of its performance to provide more flexibility / high-level programming features. Python is 33 times slower than Java and 56 times slower than C language. Python is relatively very slow because C is compiled and Python on the other hand is interpreted. The compiler transforms the C code into machine code, all at once. The interpreter on the other hand has to read, interpret, and perform each line of code and update the machine state (which adds a lot of overhead). When a program is compiled into machine code, the CPU can execute it directly. However, when it comes to interpreters, the CPU runs the interpreter, and the interpreter itself executes the program. Hence, making it slower than other programming languages.

I will demonstrate how making small yet impactful changes to your code can improve the performance of your application. I have curated around 15 to 20 such examples where we can improve the runtime of Python code significantly.

Prerequisites:

Basic Python syntax and built-in functions.

Speaker Info:

I am a Software Engineer. I work on Python, Terraform, Kubernetes, and Docker as part of my day job. I am passionate about coding and learning new skills. You can find me on most of my socials.

Speaker Links:

GitHub LinkedIn Twitter

Section: Core Python
Type: Talks
Target Audience: Beginner
Last Updated: