I want to speed up the process of retrieving information from files. In my code for each query I loop over files. For each file I retrieve data into array and process.
One way is to store all these files in array of arrays and then I guess it will do it much faster.
My question is: is there an easy way to avoid reprogramming and use cache so that files retrieved one time from HD will be used in subsequent queries without retrieving them over and over from HD.