I am mainly interested in C# but general answers are welcome too.
Would it take longer to iterate over an array of longs compared to ints? I imagine that the larger value types take up more memory so a contiguous array is obviously longer. But is the hop from Array[0] to Array[1] any different if that gap is 8, 16 or 32 bytes etc?
If it is, would a large struct type (because its by value) take even longer?
Or is traversing an array kinda just memory pointer to memory pointer and the gaps/location of the next item not really relevant?