Force Windows to cache executables without running them?

Posted by Josh Einstein on Super User See other posts from Super User or by Josh Einstein
Published on 2012-12-05T18:44:03Z Indexed on 2012/12/06 23:07 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

Is there a way to force Windows to pre-load certain EXE/DLL binaries into its prefetch/superfetch cache as if they had been executed? I have a particular application that loads pretty slowly on first run but if it's "warm" (recently executed) it starts pretty quickly. I'd like to prime the cache early in the background before the application is needed. But since it shows a UI, I'm looking for a way to do this silently. So simply launching the application it isn't ideal.

Thanks you in advance.


Prompted by David's suggestion in the comments, I wrote a PowerShell script to memory map the files, seek to the end, and close them. I haven't done any controlled tests yet and it could just be my imagination, but Sublime Text (the application in question) appeared to load much more quickly this time around and I haven't used it for several hours.

© Super User or respective owner

Related posts about Windows

Related posts about cache