Home >
Back-end > C caching algorithms, how to bring all the data in a text file to read in
C caching algorithms, how to bring all the data in a text file to read in
Recently in the LRU algorithm, and want to improve the speed of processing the data of the program, so didn't want to read all of the requested data and then the algorithm calculated,
I've just started to use
While (getline (in, STR))
{
Lru_cache. DisplayNodes ();
count ++;
cout<" Request values "& lt; Cout & lt; Is read, again, so I'd like to read all data to calculate, a great god, please help to change procedures