Modern hardware is so good at shuffling memory around that it’s faster to rotate the entire array instead of stepping through elements one at a time with an index modulo array length.