4 ms·
The Go 1.7 GC is already on par with most Java GCs and arguably better. Our Go projects with large heaps now have better pause times than the similar Java progr
by voidlogic 10y ago
The Go 1.7 GC is already on par with most Java GCs and arguably better. Our Go projects with large heaps now have better pause times than the similar Java programs, all having tried many of the Java GCs...
- icholy 10y agoNot sure if it's better, it just has less work to do. Java creates a lot more garbage.
- stcredzero 10y agoWhatever works. It's the result that counts.
- icholy 10y agoofc, I was strictly speaking about the GC algorithm.
- voidlogic 10y agoFair enough, I was comparing the application + runtime interaction, basically I, app behavior. >Java creates a lot more garbage. Very true, Go is great about keeping things on the stack. Also sync.Pool helps a lot when used as needed.
- twic 10y agoPart of the reason for this is that Java GC development has focused more on throughput, whereas Go GC development has focused more on pause time. It's rather hard to compare throughput between two such different languages, though.