Re: efficiency question: type versus array
- From: lindahl@xxxxxxx (Greg Lindahl)
- Date: 15 Jun 2005 11:32:55 -0700
In article <m1hdfzbig2.fsf@xxxxxxxxxxxxxxxxxxxxx>,
Ushnish Basu <ubasu@xxxxxxxxxxxxxxx> wrote:
>My question is: which one will be more efficient in terms of memory access?
In general, a 2D array allows many optimizations that a 1D array of 1D
arrays allows. This is an area where many C++ programs lose
performance. I also find the 2D array notation easier to read, but
that's a personal preference.
-- greg
.
- Follow-Ups:
- Re: efficiency question: type versus array
- From: glen herrmannsfeldt
- Re: efficiency question: type versus array
- References:
- efficiency question: type versus array
- From: Ushnish Basu
- efficiency question: type versus array
- Prev by Date: Re: Halt execution procedure
- Next by Date: Re: Halt execution procedure
- Previous by thread: Re: efficiency question: type versus array
- Next by thread: Re: efficiency question: type versus array
- Index(es):
Relevant Pages
|