News for hackers. Stuff that matters.
Re:Go Escape Analysis Flaws by pron on Thursday February 12, 2015 @09:25PM (#9042557)
> Stack allocation is more predictable.

It is. It's just that I recall reading that the difference didn't turn out to be dramatic in practice. The object belonging to the bottom of the stack are promoted (they can't amount to much if they're stack-allocated, because your stacks aren't big anyway), and the reset is young. Whatever is mid-lived probably explains most of the non-dramatic difference (as well as young collections which are very cheap but not entirely free).

There are no comments on this comment yet.