News for hackers. Stuff that matters.
Re:How fast can you allocate a large block of memory in C++? by pjc50 on Thursday January 16, 2020 @08:02AM (#22064065)
K&R actually contains an example malloc()/free() implementation using a "freelist" - i.e. a list of spare memory blocks held as a linked list in the "unallocated" (or de-allocated) blocks. Memory is retrieved from the OS using the ugly sbrk() interface.

There are no comments on this comment yet.