G
Guest
Is it less efficient to declare variables inside loops like this:
For I = 1 to 1000000000000
Dim num as integer
........(using num here)......
Next I
Versus declaring outside the loop like this:
Dim num as integer
For I = 1 to 1000000000000
........(using num here)......
Next I
It looks as if the first one would keep re-allocating and releasing memory
for the variable...
For I = 1 to 1000000000000
Dim num as integer
........(using num here)......
Next I
Versus declaring outside the loop like this:
Dim num as integer
For I = 1 to 1000000000000
........(using num here)......
Next I
It looks as if the first one would keep re-allocating and releasing memory
for the variable...