Hacker News new | ask | show | jobs
by sys_64738 1325 days ago
I thought GO had garbage collection or is that just trash talk?
1 comments

It does, and as the article mentions, it’ll collect the map elements. But it doesn’t collect the map infrastructure that grew to accommodate the elements, and doesn’t shrink when the elements are removed, because the map never stops referencing them.