4 ms·
> Ideally, there is only one allocation and deallocation in the entire program. Doesn't this techically happen with most of the modern allocators? They do a lo
by bheadmaster 1y ago
> Ideally, there is only one allocation and deallocation in the entire program.
Doesn't this techically happen with most of the modern allocators? They do a lot of work to avoid having to request new memory from the kernel as much as possible.
- Asmod4n 1y agolast time i checked, the glibc allocator doesnt ask the OS that often for new heap memory. Like, every ~thousand malloc calls invoked (s)brk and that was it.