← Writing

Malloc

2 posts

Where the Memory Goes

Part 5 of a series on the CPython runtime: pymalloc, the allocator under every small object. Size classes, 4 KiB pools and 256 KiB arenas, a pool header read from Python, why 4,000 surviving floats keep 95 MiB of memory, …