Good day all,
I read in my textbook for my C++ class, that arrays place variables that are all of the same type, in sequential memory allocations.
My question is, why then are arrays so performance degrading (or so I've been told), when they are sequential. Sequential memory access is much faster than random access, is it not? Sequential access should make features like hardware prefetch, perform that much better.
I read in my textbook for my C++ class, that arrays place variables that are all of the same type, in sequential memory allocations.
My question is, why then are arrays so performance degrading (or so I've been told), when they are sequential. Sequential memory access is much faster than random access, is it not? Sequential access should make features like hardware prefetch, perform that much better.