Why would a program run faster the second time?
Posted: Tue May 03, 2011 1:47 pm
I've been writing a program which reads many dozens of files.
Running it from PB, I find that the first time I run the program (after restarting the computer), it takes a while to "warm up". But running it the second time, it's much faster.
Why would this be happening? Are recently-opened files held in RAM, or in the CPU cache?
Running it from PB, I find that the first time I run the program (after restarting the computer), it takes a while to "warm up". But running it the second time, it's much faster.
Why would this be happening? Are recently-opened files held in RAM, or in the CPU cache?