title: Array of objects vs arrays of object's properties − which is more efficient?
body: <p>Which is faster and consumes less memory — an array of objects with a set of properties or all of the object's properties as arrays?</p>
  
  <p>I'm making a 2d tile game and the world consists of tiles, so I create a separate instance of <code>Tile</code> class for each tile, and some people say it could be faster if I used arrays of tiles' properties instead. I'd like to see the difference with my own eyes, but the game is too complex at this point to rewrite the code.</p>
  
  <p><strong>Update:</strong> I found some time to test both options, and with insignificant memory and cpu differences, array of objects wins for being so much easier to work with (code readability + debugging simplicity).</p>