5 ms·
Indeed, this argument is speaks to a fundamental incompatibility between OOP and efficient code. I wonder how to write a compiler to perform this transformation
by frozenport 12y ago
Indeed, this argument is speaks to a fundamental incompatibility between OOP and efficient code. I wonder how to write a compiler to perform this transformation.
- crucini 12y agoSame tension occurs in Java games for phones, at least pre-android. Instead of an array of Sprite objects, turns out its more efficient to have parallel arrays of ints, which leads to less readable code.
- blt 12y agowith Java it's even worse because SoA is the only way to get your data packed in contiguous memory, as opposed to spraying it all over there GC heap.