Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tybit
· 2y ago · 0 comments
Runtimes with garbage collectors typically optimize for allocation, not deletion.
Comments
[–]
mike_hearn
1y ago
Generational GC optimizes for both. They assume that most objects die young, so choose to relocate live objects and just mark the entire region that was evacuated as empty. So this is a very efficient way to delete data.