Sparse Data Structures: The Indirect Stride Trap

Operations on sparse matrices or graphs, particularly when using formats like Compressed Row Storage (CRS), involve indirect indexing. This leads to highly unpredictable and irregular strided memory access patterns that are difficult for hardware prefetchers to predict, resulting in frequent cache misses and thrashing.

Sources

Open the full topic