Arrays vs Single variables
#4

Id rather say, arrays are only slower than single variables, if you misuse them. E.g. by making them bigger than needed.
Technically, arrays are nothing else but normal variables, pointers to a position in memory. Arrays just got an additinal rule that defines the offset from the position for array indexes. Reading and writing to these memory addresses always have the same speed.
Reply


Messages In This Thread
Arrays vs Single variables - by kurta999 - 31.07.2013, 22:18
Re: Arrays vs Single variables - by Jay_ - 31.07.2013, 23:05
Re: Arrays vs Single variables - by MP2 - 01.08.2013, 00:50
Re: Arrays vs Single variables - by Mauzen - 01.08.2013, 02:25
Re: Arrays vs Single variables - by Scenario - 01.08.2013, 02:35

Forum Jump:


Users browsing this thread: 1 Guest(s)