Watching Go's new garbage collector move through the heap
Summary
Go 1.26's Green Tea garbage collector is default; the article outlines memory allocation in Go, compares with C#, demonstrates a heap visualization, and discusses mark-sweep, cache behavior, and GC performance metrics. It includes perf analysis showing improvements with Green Tea, discusses MPKI and L1/L3 caches, and notes fragmentation/non-compacting GC behavior.