|
-
June 14th, 2013, 10:41 AM
#1
Loading a file and indexing line starts
Hi All,
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;
std::ifstream ifs;
MapViewOfFile
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?
Cheers,
AnotherMuggle
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|