I achieved peak performance in python, here's how ...
In the ever-evolving landscape of software development, crafting code that not only functions flawlessly but also operates at peak performance is a skill that sets exceptional developers apart. This talk delves into the art of optimizing Python code, exploring techniques and strategies to fine-tune your programs for maximum speed and minimal resource consumption, with a particular focus on memory efficiency.
In this session, we will embark on a journey and refine the phases of development in python.
- Functional Execution
- Rigorous Testing and Accuracy
- Performance Optimization
We will discuss common bottlenecks in unoptimized code
- inefficient Coding Practices can negatively impact performance
- Memory Leaks
- Suboptimal Data Structures and Algorithms
- Lack of Vectorization
- Overlooked Parallelization
We'll further look into the benefits of profiling the code
- Profiling the code with cProfile/sentry
- Profiling the Code with timeit
- Memory Profiler
Finally, for data driven application, we'll look into strategies to achieve peak performance
- Efficient DataFrame Storage with Parquet Files
- Handling Categorical Data Type
- Looping Techniques and How to Choose Between Different Looping Techniques?
- String concatenation (joins and cleanup)
[Attendees takeaway]
Whether you're a seasoned developer looking to enhance your optimization skills or a newcomer eager to understand the principles behind efficient Python code, this talk offers valuable insights and practical takeaways.
[Pre-requisites]
Basics of Python
[who-am-i]
Name: Dishant Sethi
Email: dishantsethi14@gmail.com
Phone no: +919582565371
Designation: Software Consultant and Founder @prodinit.com
[Previous Talks]
PyconDE and Pydata Berlin: https://youtu.be/osGGX3tcwkc
Gophercon India 2023: https://youtu.be/zuzTN3ibrCM?si=GEo31lE_Q8h4hzTR
PyDelhi: https://youtu.be/6h9I3iyqyu4
Dishant is software engineer who is equipped with the experience in Web Development, Cloud Engineering, DevOps and MLOps. He started Prodinit, a software consultancy, after successfully freelancing for a long period of time.
Talk to him about:
♦ Product Engineering
♦ Dev/ML Ops