News for hackers. Stuff that matters.
Re:Mark–Scavenge: Waiting for Trash to Take Itself Out by masklinn on Sunday November 24, 2024 @03:35PM (#42230312)
Go has much more significant stack allocation capabilities, most notably it has no problem allocating entire structs on the stack so doesn't need scalar replacement, which falls over if you breathe on it (https://pkolaczk.github.io/overhead-of-optional/).

According to https://github.com/golang/go/discussions/70257#discussioncom...

> the weak generational hypothesis does not hold up well with respect to heap-allocated memory in many real-world Go programs (think 60-70% young object mortality vs. the 95% typically expected)

There are no comments on this comment yet.