2 ms·
Computer memory is already a big array. Probably what you are thinking of is that processing array items sequentially is a lot faster than following pointers,
by kragen 1y ago
Computer memory is already a big array. Probably what you are thinking of is that processing array items sequentially is a lot faster than following pointers, but in the cases I'm talking about, you end up using array indices instead of pointers, which isn't much faster.