Standard heap `malloc` incurs significant performance costs from thread synchronization via locks, complex data structures for managing free memory blocks, and potentially expensive system calls when requesting more memory from the OS. [1, 3, 5]
Open the full topic