free_memory

Documentation for eth_defi.research.metrics_freshness.free_memory function.

free_memory()

Release freed buffers back to the operating system.

gc.collect() alone is not enough under pandas 3, where string column buffers belong to Arrow’s allocator: memory is freed logically but can stay in the allocator and keep RSS high. pa.default_memory_pool().release_unused() returns those buffers to the OS. Call after deleting a large frame.

See pyarrow.MemoryPool.release_unused.

Return type

None