Skip to main content

prefetch_read

Function prefetch_read 

Source
pub fn prefetch_read<T>(ptr: *const T)
Expand description

Prefetch memory for reading.

This function hints to the processor that the specified memory location will be read soon, allowing it to preload the data into cache. On architectures that don’t support prefetching, this is a no-op.