var inside loops in Design Philosophy
|
|
I wonder if anyone into the details could answer this question: When you run a loop and create a var within the loop, is it slower than to put it outside?
In other words, is:
var/a = 0 while(a++ < 10000) var/b = rand(1,100) world << b
|
Slower than:
var a = 0 b = 0
while(a++ < 10000) b = rand(1,100) world << b
|
Crude example I know, but you get my point.
/Gazoot
|