Related question: If I have 1,000 three-dimensional cones (x_i, y_i, z_i), does it matter for performance purposes (e.g. improved cache performance) whether I arrange my variables:
x_1, x_2, ..., x_1000, y_1, y_2, .., y_1000, z_1, z_2, ... z_1000
or:
x_1, y_1, z_1, x_2, y_2, z_2, ..., x_1000, y_1000, z_1000
?