Array size and speed application
Posted: Tue Nov 24, 2015 3:32 am
Hi,
Why have negative effect to speed application used size of Array ?
In my program I have
DECLARE arow[20000000]
Then I use this arow to read lines from file in cycle
FOR i=1 to x
arow:=something...
NEXT
x can be 100000, 2.000.000 and so 20.000.000
If I declare to 2.000.000 program speed is about 3x speed then declare 20.000.000.
Can I set some dynamic declaration without set to fix number of array elements ?
Why have negative effect to speed application used size of Array ?
In my program I have
DECLARE arow[20000000]
Then I use this arow to read lines from file in cycle
FOR i=1 to x
arow:=something...
NEXT
x can be 100000, 2.000.000 and so 20.000.000
If I declare to 2.000.000 program speed is about 3x speed then declare 20.000.000.
Can I set some dynamic declaration without set to fix number of array elements ?