Re: array index and pointer, which is faster?
- From: spambait@xxxxxxxxxx (Doug Miller)
- Date: Fri, 29 Feb 2008 19:38:45 GMT
In article <fq9kf3$eh2$1@xxxxxxxx>, Andrey Tarasevich <andreytarasevich@xxxxxxxxxxx> wrote:
Xiaohan wrote:
But I
tested it, the speed is almost the same. Can anybody tell me why?
Well, take a look at the assembly code you quoted. Don't you see that it
is exactly the same in both cases?
Well, *I* certainly don't see that, and you probably won't either if you look
at it again... :-)
.
- Follow-Ups:
- Re: array index and pointer, which is faster?
- From: Andrey Tarasevich
- Re: array index and pointer, which is faster?
- References:
- array index and pointer, which is faster?
- From: Xiaohan
- Re: array index and pointer, which is faster?
- From: Andrey Tarasevich
- array index and pointer, which is faster?
- Prev by Date: Re: Is there stack associated when a executing an inline function?
- Next by Date: Re: array index and pointer, which is faster?
- Previous by thread: Re: array index and pointer, which is faster?
- Next by thread: Re: array index and pointer, which is faster?
- Index(es):