question on speed

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

question on speed

Post by sal21 »

I use the tipical free file ... eof eccc... to read line by line a txt file.
i need an explain.

instead to use the code to read the txt in a server dir, i have a good performance if i copy in local c:\ the txt and read it?

or have the same performance in order of time?

User avatar
HansV
Administrator
Posts: 78531
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: question on speed

Post by HansV »

Generally speaking, reading from your hard disk will be a lot faster than reading from a network drive.
With a small file, you won't notice the difference, but if you're working with a really large file, you'll see better performance if you first copy the file to your hard disk, then read it using VB/VBA.
Best wishes,
Hans