Hacker News new | ask | show | jobs
by ultimaweapon 60 days ago
One of big issue with GC is it need to scan every reachable objects to mark it is reachable. That mean even if your code produce no garbage but have a large amount of long lived object the GC still need to traverse all of those objects every cycle.
1 comments

Only in very bad implementations of GC.
By that definition, Go has very bad GC. Many (myself included) would strongly disagree with this.
Every memory management scheme makes trade-offs (even manual ones), and golang's is no different. It seems to work well in many scenarios.
It is better to scan everything than to copy it.
The op, most likely, was referring to generational GCs. Golang notably doesn't have one.