Thinking ahead

?
  • Created by: Milan Eau
  • Created on: 20-04-22 13:23

Thinking ahead

Caching

In caching, data that is input might be stored in RAM in case it is needed again before the process is shut down. If it is needed again it doesn’t need to be read, making it very fast.

Prefetching, the process where the CPU calls for an instruction from memory before it is needed.  This helps speed up throughput. Some algorithms can predict which instructions are going to be needed so they are ready in cache as soon as they are needed.

Caching can also reduce load on a web sever because data required by an application can be anticipated, thereby reducing the number of separate access actions.

Caching has some disadvantages also; it can be hard to implement affectively. Also, if the wrong data is cached, then it can be difficult to re-establish the correct sequence of data items or instructions.

Comments

No comments have yet been made