See my comment below, GC isn&#x27;t the problem. It&#x27;s being able to layout your memory appropriately so you don&#x27;t cache miss which when everything is a single heap allocation becomes almost impossible.