Suppose we have a very large table with a large number of records. Is it faster to replace the rowcount with a variable so it does not have to be recalculated every iteration or does it not have an impact on speed improvement?
This:
Versus this:
This:
B4X:
Dim MyRowCount as Int =Cursor1.Rowcount
For i=0 to MyRowCount -1
Cursor1.position=i
....
Next
Versus this:
B4X:
For i=0 to Cursor1.Rowcount -1
Cursor1.position=i
....
Next