Re: OONSTD: Element Ordering 2D Arrays

Jim Phillips (jim@ks.uiuc.edu)
Thu, 9 Jul 1998 11:12:04 -0500 (CDT)

On Thu, 9 Jul 1998, Roldan Pozo wrote:

> If you are concerned with efficiency (I am) add one precomputed M-length
> vector of pointers (at timeof construction) to avoid any runtime overhead.

Wouldn't the extra memory access take far longer than a multiply?
Especially since the array pointer and N would be adjacent in memory
(since they are in the same object) while the vector of pointers would be
dynamically allocated?

-Jim