Stridebased
Stridebased describes algorithms and data access patterns that operate on elements spaced by a fixed offset, or stride, in memory. The stride is the distance between consecutive accessed elements, measured in units of elements or bytes. Stridebased access is common when traversing multi-dimensional data laid out in linear memory or when sampling non-contiguous elements for vectorized computation.
In practice, stridebased patterns arise in numerical computing, image processing, and graphics, for example when iterating
Performance depends on locality. Small strides that align with cache lines preserve spatial locality and reduce
Related topics include array layouts, structure of arrays versus array of structures, memory locality, and cache