Skip to contentSkip to conversation

what is faster offsets or pointers?

DISCUSSION Lope De Vega 1 participant 1 message Oct 23, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

If having a memory block (a contigous region) so it can also be treated as a vector, what would be faster?

* accesing parts of such a region through
scale/base/index (offsets)

* by using pointers.

My bet is that offsets perform better.

Regards,

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com