5 ms·
Persons { String[] first_name; String[] last_name; String[] address; } Are you sure they didn't do it for performance? That is a well-known pattern for getting
by gruseom 13y ago
Persons { String[] first_name; String[] last_name; String[] address; }
Are you sure they didn't do it for performance? That is a well-known pattern for getting better data locality ("structure of arrays" vs. "array of structures").
- RogerL 13y agoI was thinking the same thing; in such a case a // coded this way for cache coherence goes a long way.