PDA

View Full Version : Re: [LF] File or array?


Lahey Support
08-15-2003, 01:19 AM
If you have enough memory to read the file and store the
information in it in an array (and need a significant
fraction of the data contained within), it would almost
certainly be much faster to read it in one fell swoop.

Note that initial data seek times are much slower than actual
data reads. Also note that unless the calculation is
very swift relative to the data i/o, this speed difference
will not modify the runtime significantly.

ken

At 09:25 AM 2/2/99 , Dora wrote:
>I have a file that contains data that i will use during the execution of the
>program. I am curius what would be faster: to open the file once read all
>the data and store them during execution in an array or whenever i need
>something from this file to open it get the values i need close the file (or
>maybe leave the file open during execution) etc. without commiting an array?
>Thanks.
>
>Dora Avanidou