c - Premptively getting files into Windows page cache -


i have program written in c allows user scroll through display of zillion small files. each file needs undergo amount of processing (read only) before it's displayed user. i've implemented buffer preprocesses files in radius around user's position, if they're working linearly through them, there's not delay. various reasons, can run processing algorithm on 1 file @ time (though can have multiple files open, , can read them) buffer loads sequentially. processing algorithms optimized they're going get, i'm running i/o problems. @ first, loading process slow, when files have been accessed few times, speeds 5x. therefore suspect what's slowing me down waiting windows page cache pull files memory. know little sort of thing. if ensure files in cache before processing algorithm needed them, i'd in business.

my question is: there way persuade/cajole/trick/intimidate windows loading files page cache before around reading/processing them?

there's 1 way file file system cache: reading it. that's chicken-and-egg problem. can egg first using helper thread reads files. have have kind of smarts file next. , not read much.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -