Skip to content

CacheWarmer is an attempt to pre-fetch desired files into the Windows File System Cache.

License

Notifications You must be signed in to change notification settings

unquietwiki/CacheWarmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CacheWarmer

CacheWarmer is an attempt to pre-fetch desired files into the Windows File System Cache. It was largely developed with the assistance of Claude Code, and is a self-contained .NET 10 C# application (no need to install a separate runtime).

Usage & Configuration

CacheWarmer.exe (path) (path2) ...

Configuration is achieved via the inclusion of an appsettings.json file in the same directory as the EXE. As long as that file is present, and populated, you can run the program as is, no arguments required. If the file is missing, the program should still run as long as paths are specified on the command line; keep in mind, there are pre-programmed defaults you won't be able to override without recompiling the program.

Admin rights are not required to run this program.

{
  "CacheWarmer": {
    "Paths": ["C:\\Projects"], <- array of directories you wish to scan; the double-slash is necessary.
    "Extensions": [ ".cpp", ".h", ".c", ".cs" ], <- array of filetypes you wish to scan.
    "MaxFileSizeBytes": 67108864, <- defaults to 2GB; adjust this number based on the type of files you expect to pre-cache.
    "DelayBetweenPassesSeconds": 300, <- can be set to any numerical value, but recommended to be at least more than 30 seconds.
    "MaxParallelism": 0 <- can be set to any value up to 640 (limit of Windows CPU cores as of 2026); '0' auto-selects half your core count.
  }
}

Notes

  • This program is a proof-of-concept. No guarantee is made of actual increased performance.
  • Use RAMMap to identify cached files in memory.

Building

  1. Install the .NET 10 SDK (via WinGet / VS 2026 / MS website).
  2. Run the following in a terminal window of your favorite editor (VS Code, Zed, etc)...
dotnet build -c Release
dotnet publish

Changelog

  • 2026.02.13.1 -> Initial Release

About

CacheWarmer is an attempt to pre-fetch desired files into the Windows File System Cache.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages