A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Avoiding File Access Multiple Times.
Joined: Mar 02, 2009
Mar 30, 2009 23:08:58
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?
"A single conversation with a wise man is better than ten years of study."
Joined: Jul 26, 2007
Mar 30, 2009 23:56:12
What type of file is it? What kind of data?
One way to do it is cache it in memory if possible.
How to ask questions
Donate a pint, save a life!
Onff-turn it on!
It is sorta covered in the
JavaRanch Style Guide
subject: Avoiding File Access Multiple Times.
Requested resource is not available - how to correct
java io/reading from Disk file using RandomAccessFile class
How can I test to see if an object exists (yet)?
How data stored in Database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014