Skip to main content

prefetch_slice

Function prefetch_slice 

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

Prefetch a slice of data for sequential access

Prefetches the next cache line(s) of data to improve sequential access. Safe wrapper around prefetch_read that works with slices.