Strided array access may impact performance.
Accessing an array using a non-unit stride is less efficient than accessing consecutive positions because the latter maximises data locality. Maximizing data locality increases the performance thanks to the cache levels available in modern processors. Note that C/C++ column major access is an example non-unit stride, where the stride is the column width.
Consider using techniques like loop fusion, loop interchange, loop tiling or changing the data layout to avoid non-sequential access in hot loops.
Get started with Parallelware Analyzer today
Boost the performance of your code