Sign in to follow this  

CPU can remember what he executed just before?

This topic is 4843 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i believe many ppl have the experience that if we run a same program for twice(or more), our CPU would execute it faster in the second time(& the third, fourth...). for an example, if i turns my PC's power on, after entering Microsoft Windows, i open the Internet Explorer, close it, open it again, i would find the second time i open IE is obviously faster than the first time. is this the effect of buffers in CPU? i don't quite understand. could anybody tell me? thx!

Share this post


Link to post
Share on other sites
I'm guessing it's being cached somewhere...
Also, the first time you fire up your PC it's still crunching away for a few minutes as it loads, so stuff loads a lot slower. Also, when you close the program, it might keep some bits and bobs loaded running in the background.

Share this post


Link to post
Share on other sites
The boosted speed in the case of launching an app a second time isn't due to CPU caches. It's due to disk caches (some percentage of RAM is used to remember what was just accessed on disk), and shared libraries being loaded (IE will load a bunch of DLLs. It will stop using them when you quit, but Windows can keep them in memory in case another app needs them).

CPU caches tend to be small, and take advantage of the fact that programs often (well, nearly always) loop, and often perform multiple actions on the same data. Keeping the code and data around, rather than fetching it from memory, speeds things up enormously.

Share this post


Link to post
Share on other sites

This topic is 4843 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this