Overview
Discover effective techniques for measuring and optimizing Python memory usage in this 30-minute EuroPython Conference talk. Learn about different memory profiling tools and when to apply them based on your specific use case. Explore how memory problems manifest in Python, understand memory usage patterns across various application types, and gain insights into identifying and addressing memory leaks in both Python code and C extensions. Delve into strategies for managing peak memory usage in data processing applications, including data science and scientific computing scenarios. Acquire practical knowledge to improve your Python programs' performance and stability by effectively managing memory resources.
Syllabus
Introduction
Should you write the software
Outline
RAM vs Disk
Failed allocation
Ram
Data loading
Reduce peak memory
Flame graph
Memory leaks
Memory usage
Stack trace
Memory leak explained
Cache
Field
Reproducer
Malek
Python leak example
Recap
PythonSpeedcom Memory
Questions
Taught by
EuroPython Conference