Compile and execute problem
I have a run-time problem with my application. When I first turn on my PC, compile my application and execute it, it takes around 20 to 30 to "get ready". It is the process of start-up what consumes so much time.
My problem comes when I compile again the executable, or if I modify something to try it and compile it to test it. The second and sucessive times I compile and executes the application it takes only 2-3 seconds to load and be ready. Then, if I reboot and executes it again, that just compiled version which took only 2 or 3 seconds now takes 20 to 30.
As I see it, it looks like an OS paging which help to speed up the start process. I suspect same sections of the executable remain in virtual memory so next executions take less time.
Is there any way I can force my app or the os to load the app like the first time?, or unload cached sections? it is important for me because I look for programmatic ways to improve that first costly startup time, and it is difficult as it is now because I can not profile corretly the time.
I am using Windows-XP, but I have seen the same problem in Vista.