Re:GC Tuning Confessions of a Performance Engineer
by pron on Saturday May 30, 2015 @04:26AM
(#9629476)
> I tell the compiler to lump them together and exploit the prefetcher wherever possible.
That's a memory layout issue. What does a GC have to do with that? .NET and Go already allow good memory layout control, and Java will, too, once it gets value types. Conversely, one could create a manually-managed language that doesn't support object/array embedding, either. Memory layout control and GCs are completely orthogonal issues.
>> cache line misses hurt.
> What does that have to do with GCs?
Everything. Sure you can use a copying GC and hope related objects go together. I tell the compiler to lump them together and exploit the prefetcher wherever possible.