Posts: 139
Threads: 8
Joined: Oct 2009
Reputation:
0
What is the best way to use arrays?
PVar, Normal Var, Bit Array?
What is the fastest & safe...
I'd like to know what would bring me greater efficiency in general.
Thank you.
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
second option. I've personally experienced problems with PVars if used largely .. and PVars are slower.
Posts: 6,129
Threads: 36
Joined: Jan 2009
It depends what you mean by 'bit array'. Packed strings/arrays tend to generally be more efficient for memory, yet normal strings/arrays/variables tend to be stable, fast and widely used.
PVars are functions which are considerably slower, as they have the overhead of processing as a function. The thing with other types of variables is that they are declared and processed as variables, PVars deal with the overhead of the native function which generally slows down the reaction speed of getting or setting them.
Posts: 139
Threads: 8
Joined: Oct 2009
Reputation:
0
Thank you guys, it helped me.