Arrays vs Single variables
#1

I've readed lot of about this, and I saw someone said arrays are slower than normal single variables, someone not.

What's your opinion?
Reply
#2

What you're suggesting cannot be justified without any relevant theory to back it up. You need to elaborate.
Reply
#3

Quote:
Originally Posted by kurta999
View Post
I've readed lot of about this, and I saw someone said arrays are slower than normal single variables, someone not.

What's your opinion?
This is (or is not, I don't actually know) a fact, the complete opposite of an opinion. I don't really see any discussion to be had here \o
Reply
#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
#5

I'm going to agree with Mauzen on this one!
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)