I achieved peak performance in python, here's how ...
Dishant Sethi (~dishant24) |
7
Description:
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 optimising 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.
[Note] This talk is accepted at PyconDE & Pydata Berlin 2024 and will be delivered on 24th of April 2024 at the conference,
Prerequisites:
Basics of Python
Speaker Info:
[who-am-i]
- Name: Dishant Sethi
- Email: dishantsethi14@gmail.com
- Phone no: +919582565371
- Designation: Software Consultant
[Previous Talks]
- PyconDE and Pydata Berlin 2023: https://youtu.be/osGGX3tcwkc
- Gophercon India 2023: https://youtu.be/zuzTN3ibrCM?si=GEo31lE_Q8h4hzTR
- PyDelhi: https://youtu.be/6h9I3iyqyu4
Speaker Links:
Linkedin: https://linkedin.com/in/dishantsethi Twitter: https://twitter.com/Dishantsethi14