Python Conference APAC 2024

Organized Chaos: Demystifying Python’s Garbage Collection
2024-10-26 , CLASS #2 - 4B
Language: English

Ever wondered what goes on behind the scenes to keep your Python apps running smoothly? Join us for a deep dive into the world of garbage collection and resource allocation! We’ll uncover the secrets of Python's memory management, from reference counting to tackling those pesky cyclic references. Uncover how Python automatically identifies and cleans up unused objects, ensuring optimal performance using gc module. You'll also get a scoop of tools like memory_profiler and tracemalloc. Whether you're a Python pro or just curious, this talk will help you keep your code lean, clean and efficient. Don't miss it!


  • Introduction: An overview of Python’s garbage collection and its importance.
  • Memory Management Basics: We’ll touch upon the basics of memory management and reference counting using gc module.
  • Cyclic Garbage Collection: We’ll discuss how Python handles cyclic references.
  • Avoiding Memory Leaks: Common pitfalls and solutions.
  • Tools for Monitoring: Introduction to memory_profiler and tracemalloc
  • Demonstration through code: Case study and demo of memory leak and how to tackle it.
  • Best Practices: Guidelines for effective memory management.
  • Q&A Session: We'll conclude with an open Q&A session to address audience questions and provide further insights.

Sejal Gupta (She/Her) is a software engineer, fueled by a passion for technology and constantly strives to empower women in tech. She founded a community (Women in Tech++) where she has mentored 100+ women and seeks to keep this legacy. She has authored 3 research articles on the Internet of Things and presented her work at IEEE Conferences. She is a public speaker and loves to talk about solving problems using cutting-edge technology.
Linkedin: https://www.linkedin.com/in/sejal-gupta-she-her-3aab7815a/ Github: https://github.com/Sejal-G Scopus: https://www.scopus.com/authid/detail.uri?authorId=57222596059 Google Scholar: https://scholar.google.com/citations?hl=en&user=8O4uOVYAAAAJ

Hey, I'm Sidhant, a passionate software developer fueled by curiosity and coffee. I specialize in crafting clean code and turning complex ideas into user-friendly apps. Whether it's debugging a tricky algorithm or brainstorming the next big feature, I love the thrill of problem-solving.
I have published and presented my research work on an optimised IoV algorithm at IEEE ICC Conference. Outside of coding, you'll catch me gaming, exploring new tech trends, or playing the flute. Let's geek out over code and build something awesome together!"