- Joined
- Apr 25, 2011
- Messages
- 73
I don't know if this has been answered (I just have a really hard time with search things...), but I will just get to the point:
I was wondering...
Let's say we have variables:
Name: "Time"
Type: Integer
Array: Yes (20 max)
Name: "Time1"
Type: Integer
Array: Yes (10 max)
Name: "Time2"
Type: Integer
Array: Yes (10 max)
Let's assume that we have 20 random (the value is not important) numbers. First we get the variable "Time" to hold the values in every array slot. Then we get "Time1" to hold the first 10 values and "Time2" to hold the other 10 values.
Now... What is consuming less memory? The bigger array "Time" which is only one, but has more array slots or the two variables "Time1" and "Time2" which have less array slots?
I was wondering...
Let's say we have variables:
Name: "Time"
Type: Integer
Array: Yes (20 max)
Name: "Time1"
Type: Integer
Array: Yes (10 max)
Name: "Time2"
Type: Integer
Array: Yes (10 max)
Let's assume that we have 20 random (the value is not important) numbers. First we get the variable "Time" to hold the values in every array slot. Then we get "Time1" to hold the first 10 values and "Time2" to hold the other 10 values.
Now... What is consuming less memory? The bigger array "Time" which is only one, but has more array slots or the two variables "Time1" and "Time2" which have less array slots?
Last edited by a moderator: