Original link: When Fast Code Runs Slow in Game Engines / Level Up Coding / Alexander Korostin.
The article mentions game engines, but I believe the topic is just as relevant for many other domains.
It is not C++ specific either. It applies to other native languages as well: C, Fortran etc.. Just remember that Fortran store multi-dimensional arrays differently!!