June 14th, 2013, 10:41 AM
Loading a file and indexing line starts
I've spent some time trying to performance test various methods of loading / accessing a file, either into memory or through a memory mapped file, but I am having some trouble.
FILE * pFile;
I'm have trouble because Windows appears to cache the file, so I am getting very mixed results. Sometimes a huge file (100's MB's) will load quickly, other times almost instantly.
Does anyone know how to stop Windows from doing whatever it's doing, so I can see the real time taken to load/access a file from disk?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.