Memory cache

Create Cache-Data Blocks


Challenge

Take advantage of data-cache locality with cache-data blocking. Loops with frequent iterations over large data arrays should be restructured such that the large array is subdivided into smaller blocks, or tiles. Each data element in the array is therefore reused within the data block, so that the block of data fits within the data cache, before operating on the next block or tile.

  • Memory cache
  • performance optimization
  • Elaborazione parallela
  • Align and Organize Data for Better Performance


    Challenge

    Minimize performance losses due to unaligned data. Unaligned data can be a potentially serious performance problem. It is important to remember to focus on data elements in the most CPU-intensive parts of your program.


    Solution

    Align data on natural operand size address boundaries. If the data will be accessed with vector instruction loads and stores, align the data on 16-byte boundaries. For best performance, align data as follows:

  • Memory cache
  • performance optimization
  • Elaborazione parallela
  • Iscriversi a Memory cache