Slow File IO when files are on a computer on the network

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Hello
I have done some code that parse log files for informations
I have developped everything locally and it was going smooth
Now the files that I acces threw my code are on a share on a server
and it became very slow (more than 10 time slower)

I am opening the file with a stream reader

fileBrowser = New IO.StreamReader(fileName)

and I browse with ReadLine()

Any idea ?

Thanks
 
Network vs Local will always be slower. What you might be able to do
to regain speed (depending on what you're doing) is copy the file
locally, rip it, then delete it when you're done.
 
Back
Top