Skip to main content

2 docs tagged with "gc"

View all tags

Memory Management Internals

CPython's memory allocator layers, the pymalloc arena system, reference counting, cyclic GC generations, and how memory is actually freed.

Python Memory Optimisation

Object memory overhead, __slots__, generators, memory-mapped files, and GC tuning - reducing Python's memory footprint in production.