Skip to content

The same loop, ten times slower

Summing a large two-dimensional array row by row is much faster than summing the identical array column by column, on the same machine.

Why?