• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Avoiding File Access Multiple Times.

 
Nathan Heimdall
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a program which reads data from a file several times consecutively.

It accesses the same file each time for a different operation which is causing the program to run very slowly.

Is there any way I can avoid having to read it several times and get copy which I can access faster?

Thanks,
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What type of file is it? What kind of data?
One way to do it is cache it in memory if possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic