Zero Waste: Tricks to Recycle (Memory) Better
summary
The talk explains how memory waste hurts developers and explores how Python’s garbage collector and its underlying algorithms work (focusing on CPython). It presents techniques and tools for analyzing memory usage and strategies to reduce a program’s memory consumption through debugging and code-analysis approaches.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:45Python memory management
- 7:10Measuring memory usage
- 11:54Optimization strategy
- 13:05Short-lived variables
- 16:21Generators and readability
- 18:11Slots and namedtuple
- 20:20Weakref for weak references
- 23:10Summary and balance
- 24:16Q&A
related talks
25mTime to Take Out the Trash: garbage collector
27mDemystifying Python’s Generational Garbage Collector
23mMemoirs of a Python Object: Memory Management and Improving Performance
40mKnowing your garbage collector
01h 18mPython 103: Mmmm... Understanding Python's Memory Model, Mutability, and Methods
01h 18mPython 103: Mmmm... Understanding Python's Memory Model, Mutability, and Methods
28mMemory management in CPython, fast or slow?
31mHow memory profilers work
