News for hackers. Stuff that matters.
Re:Generics can make your Go code slower by chrisseaton on Thursday March 31, 2022 @09:31AM (#30866958)
> at a minimum it seems like you would need arenas for each size class

But TLABs are heterogenous by size. Objects of all sizes go in one linear allocation space. So allocating two objects next to each other is the same as allocating them both at the same time.

Re:Generics can make your Go code slower by coder543 on Thursday March 31, 2022 @09:34AM (#30866983)
That doesn’t answer how the GC knows where the boundaries of each object are.