Processor cache
Cache is a small amount of very fast memory that’s built into the CPU.
Cache is used to store:
- frequently used data and instructions
- data and instructions that the CPU is likely to need soon
- data and instructions that the CPU has recently used
- …and anything that it doesn’t want to have to go to RAM each time to fetch.
Performance
Cache is much faster than RAM, so if the CPU can get the data it needs from the cache, it can access it much more quickly than if it had to go to RAM to fetch it.
If we have more cache, then the CPU can store more data and instructions in the cache, which means that it can access them more quickly, which means that the overall performance of the CPU will be better. So in general: more cache = better performance.