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

This is exactly what a generational GC does. Once the minor heap fills up, it evicts data that is still in use and moves it to the major heap.

Note that this overhead is only incurred for data still in use. We are not comparing memory management strategies in general, but the special case of temporarily allocating data that can be thrown away at the end.



It is also not what an arena allocator does.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: