Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



last 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: