3 ms·
You can still make helper methods that get the field data for a person from the Person class if you really want. Its not the end of the world but you lose the
by jayd16 6y ago
You can still make helper methods that get the field data for a person from the Person class if you really want. Its not the end of the world but you lose the benefits when you're operating on a single large object in that style.
The reason you would use this setup is so you have all your data in contiguous arrays you can SIMD through quickly. If you're doing a lot of operations where n is low then its not that useful (and even detrimental) to orient your data array-wise.