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§
Sourcefn enable_prefetching(&mut self, config: PrefetchConfig) -> CoreResult<()>
fn enable_prefetching(&mut self, config: PrefetchConfig) -> CoreResult<()>
Enable prefetching with the given configuration.
Sourcefn disable_prefetching(&mut self) -> CoreResult<()>
fn disable_prefetching(&mut self) -> CoreResult<()>
Disable prefetching.
Sourcefn prefetch_stats(&self) -> CoreResult<PrefetchStats>
fn prefetch_stats(&self) -> CoreResult<PrefetchStats>
Get the current prefetching statistics.
Sourcefn prefetch_block_by_idx_by_idx(&mut self, idx: usize) -> CoreResult<()>
fn prefetch_block_by_idx_by_idx(&mut self, idx: usize) -> CoreResult<()>
Prefetch a specific block.
Sourcefn prefetch_indices(&mut self, indices: &[usize]) -> CoreResult<()>
fn prefetch_indices(&mut self, indices: &[usize]) -> CoreResult<()>
Prefetch multiple blocks.
Sourcefn clear_prefetch_state(&mut self) -> CoreResult<()>
fn clear_prefetch_state(&mut self) -> CoreResult<()>
Clear the prefetching state.
Implementors§
impl<A: Clone + Copy + 'static + Send + Sync> Prefetching for PrefetchingCompressedArray<A>
Available on crate feature
memory_compression only.