Skip to main content

prefetch_read

Function prefetch_read 

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

Software prefetch for upcoming data access.

This hints to the CPU to load data into cache before it’s needed, reducing memory access latency in tight loops.