Hacker News new | ask | show | jobs
by gruseom 4668 days 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").

1 comments

I was thinking the same thing; in such a case a // coded this way for cache coherence goes a long way.