1
1
I noticed that even the most basic Winform application (ie. just a window, with no extra modules) still takes several seconds to load after creating its machine code equivalent through Ngen. I guess then that the bottleneck is loading the .Net framework from disk.
Microsoft's CacheSet doesn't allow managing the actual contents of the disk cache.
Is there an application that can force Windows to keep the main .Net files in its disk cache, as a work-around to slower startup time for .Net applications?
Thank you.
Edit: Here's the screenshot of Process Monitor's Process Timeline:
3You "guess" that the bottleneck is in loading the .NET framework. Have you tried confirming this by using something like Spy++ or Performance Monitor (set it to monitor something like disk reads), or are you only guessing at and trying to find a solution to what you guess is the cause of the startup delay? – a CVn – 2012-07-09T12:12:32.260