Speed Looping Through Arrays
Posted on 2000-05-08
The speed at which I loop through arrays seems to vary as i do it..
I have an array of strings with 100,000 items
as I loop through them and add values to each index.. it seems to slow down a great deal after about the 33000 index.
For x = 1 To 100000
las_Values(x) = "about 100 characters"
If x Mod 1000 = 0 Then Me.Caption = x
when i run this.. it blazes through the first 30000 or so.. I almost cant see the values... then it slows down and i can see the numbers change..
any reason for this and what can i do to make the speed more consistant.