Time to Take Out the Trash: garbage collector
summary
Explains how Python manages memory using reference counting plus a generational garbage collector, and why understanding this matters for programs that handle large datasets, many threads/processes, or self-referential data structures (e.g., graphs). Covers concrete behaviors such as what happens to memory with multiple threads/processes, self-containing structures, and temporary values (like results of numeric or NumPy operations), and shows practical ways to apply this knowledge.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:35automatic
- 1:54manual
- 3:42strategy
- 5:22ownership
- 7:58cycles
- 12:44synchronize
- 17:53optimization
- 19:53arenas
- 20:45fragmentation
related talks
27mDemystifying Python’s Generational Garbage Collector
25mIs it me or Python memory management? 🤔💻
40mKnowing your garbage collector
23mPython Memory Understanding
29mZero Waste: Tricks to Recycle (Memory) Better
23mMemoirs of a Python Object: Memory Management and Improving Performance
01h 18mPython 103: Mmmm... Understanding Python's Memory Model, Mutability, and Methods
01h 18mPython 103: Mmmm... Understanding Python's Memory Model, Mutability, and Methods
