4 ms·
The Go team has members with decades of experience writing garbage collection algorithms, including on the JVM, so it's not starting from scratch. Go has value
by Scaevolus 4y ago
The Go team has members with decades of experience writing garbage collection algorithms, including on the JVM, so it's not starting from scratch.
Go has value types and stack allocation that allow it to create _far_ less garbage than Java and means its heap objects violate the generational hypothesis-- because shortlived objects tend to stay on the stack. This means that the Go GC can comfortably operate with far less GC throughput than typical Java programs.
https://go.dev/blog/ismmkeynote https://go.dev/blog/ismmkeynote
- pkulak 4y agoJava has done escape analysis and scalar replacement since 6.