Dimmin Array

Blitz3D Forums/Blitz3D Beginners Area/Dimmin Array

Gauge(Posted 2003) [#1]
If you were to:
Dim room(1000000000);yes...alot
Does it take up valuable memory space if you do not add any fields to it, etc?


Ross C(Posted 2003) [#2]
i would imagine that Blitz would give each slot in the array allocated memory, so you won't run out half way thru putting data into it. not too sure tho :S


Clyde(Posted 2003) [#3]
I shouldn't of thought so, due to having the memory allocations to the remaining stored variables as 0?


Ross C(Posted 2003) [#4]
well if you dim an array and ask blitz to pull out a number from it without putting values into the array then it gives you 0, so i figure there must be something stored. tho i could be wrong, i'm no expert on the subject :)


Ross C(Posted 2003) [#5]
Yeah, Dim Room(1000000000) will take up alot of memory. I ran the code with dim room(100) and put on task manager, then done dim room(100000000) it took up like 85 Mb :S