Skip to main content

prefetch_ahead

Function prefetch_ahead 

Source
pub fn prefetch_ahead<T>(slice: &[T], index: usize, offset: usize)
Expand description

Prefetch multiple elements ahead in a slice

Prefetches elements at index + offset to prepare for future access. Useful for sequential loops where you know you’ll access elements ahead.