DEV Community

loading...
Cover image for Python Memory Management 101.Deeping in Garbage collector

Python Memory Management 101.Deeping in Garbage collector

José Manuel Ortega
José Manuel Ortega is a Software Engineer and he focuses on new technologies, open source, security and testing
・1 min read

https://speakerdeck.com/jmortega/python-memory-management-101-dot-deeping-in-garbage-collector

In this talk I will try explain the memory internals of Python and discover how it handles memory management and object creation.
The idea is explain how objects are created and deleted in Python and how garbage collector(gc) functions to automatically release memory when the object taking the space is no longer in use.
I will review the main mechanisms for memory allocation and how the garbage collector works in conjunction with the memory manager for reference counting of the python objects.
Finally, I will comment the best practices for memory management such as writing efficient code in python scripts.
These could be the main talking points:
-Introduccition to memory management
-Garbage collector and reference counting with python
-Review the gc module for configuring the python garbage collector
-Best practices for memory managment

Discussion (0)