Why do some programs & games open quicker when you recently closed them?



Sometimes you quit a game and then open the game again after 30 seconds, it loads a bit faster than the time you load it for the first time in the day. Similiarly I find it to be the case with some other applications. Why does that happen?

In: Technology

Because the program still keeps some parts in the memory of your device, so it can restart faster then it would otherwise start cold

because of your RAM – Random Access Memory – which functions like a humans short term memory.

Operation system caches some data. It makes an assumption that if program was recently used or is used regularly, then it makes it more probable that they will be run again in the nearest future. So it has some files relevant to this program easily available, which allows to omit some operations usually performed at the startup, which saves time.