Contribute Media
A thank you to everyone who makes this possible: Read More

Python Memory Deep Dive for Speed and Efficiency


"Python Memory Deep Dive for Speed and Efficiency" by: Michael Kennedy Python's memory story is not often told. We hear it uses reference counting and that's about the end of it. But there is so much more going on. There is also a GC backing up reference counting, why? Instagram turned theirs off and got faster, how? Python classes can be memory hogs. But there is an escape hatch that is almost always available to us which uses much less memory and is faster computationally. Yet, almost no one opens it. You might want to.

Join Michael Kennedy from Talk Python Training and look at how Python memory works and design patterns for functions and classes making Python more efficient (memory-wise) and get a solid speed boost as a side benefit.

Recorded at the 2021 Python Web Conference (


Improve this page