Prefetching

Trait Prefetching 

Source
pub trait Prefetching {
    // Required methods
    fn enable_prefetching(&mut self, config: PrefetchConfig) -> CoreResult<()>;
    fn disable_prefetching(&mut self) -> CoreResult<()>;
    fn prefetch_stats(&self) -> CoreResult<PrefetchStats>;
    fn prefetch_block_by_idx_by_idx(&mut self, idx: usize) -> CoreResult<()>;
    fn prefetch_indices(&mut self, indices: &[usize]) -> CoreResult<()>;
    fn clear_prefetch_state(&mut self) -> CoreResult<()>;
}
Expand description

Trait for memory-mapped arrays that support prefetching.

Required Methods§

Source

fn enable_prefetching(&mut self, config: PrefetchConfig) -> CoreResult<()>

Enable prefetching with the given configuration.

Source

fn disable_prefetching(&mut self) -> CoreResult<()>

Disable prefetching.

Source

fn prefetch_stats(&self) -> CoreResult<PrefetchStats>

Get the current prefetching statistics.

Source

fn prefetch_block_by_idx_by_idx(&mut self, idx: usize) -> CoreResult<()>

Prefetch a specific block.

Source

fn prefetch_indices(&mut self, indices: &[usize]) -> CoreResult<()>

Prefetch multiple blocks.

Source

fn clear_prefetch_state(&mut self) -> CoreResult<()>

Clear the prefetching state.

Implementors§

Source§

impl<A: Clone + Copy + 'static + Send + Sync> Prefetching for PrefetchingCompressedArray<A>

Available on crate feature memory_compression only.