3 ms·
> Go has an extremely fast GC that has minimal pauses. Actually, I've heard that Go sacrificed speed big time to minimise its pauses. Garbage collectors genera
by loup-vaillant 5y ago
> Go has an extremely fast GC that has minimal pauses.
Actually, I've heard that Go sacrificed speed big time to minimise its pauses. Garbage collectors generally face a latency/throughput tradeoff, and I believe Go is no exception.
That said, fast GC with reasonable pauses existed long before Go. I personally know of OCaml and its generational, incremental GC. I expect Go built on that knowledge to find its own sweet spot.
- jlouis 5y agoAny memory allocation scheme faces that trade-off, more or less; especially so in a concurrent environment that also employs parallelism.
- loup-vaillant 5y agoPrecisely. That’s why I was suspicious of this claim that there is a GC out there that is both "extremely fast" and has "minimal pauses". Something’s got to give.