pub struct PrefetcherConfig {
pub max_read_window_size: usize,
pub sequential_prefetch_multiplier: usize,
pub max_forward_seek_wait_distance: u64,
pub max_backward_seek_distance: u64,
pub initial_request_size: usize,
}Fields§
§max_read_window_size: usizeMaximum size of the read window
sequential_prefetch_multiplier: usizeFactor to increase the request size by whenever the reader continues making sequential reads
max_forward_seek_wait_distance: u64The maximum amount of unavailable data the prefetcher will tolerate during a seek operation before resetting and starting a new S3 request.
max_backward_seek_distance: u64The maximum distance the prefetcher will seek backwards before resetting and starting a new S3 request. We keep this much data in memory in addition to any inflight requests.
initial_request_size: usizeSize of the initial request. This request, of size possibly smaller than part_size, is made to lower the latency in small-random-reads usage pattern. If set to 0, initial request is skipped.
Trait Implementations§
Source§impl Clone for PrefetcherConfig
impl Clone for PrefetcherConfig
Source§fn clone(&self) -> PrefetcherConfig
fn clone(&self) -> PrefetcherConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrefetcherConfig
impl Debug for PrefetcherConfig
Source§impl Default for PrefetcherConfig
impl Default for PrefetcherConfig
impl Copy for PrefetcherConfig
Auto Trait Implementations§
impl Freeze for PrefetcherConfig
impl RefUnwindSafe for PrefetcherConfig
impl Send for PrefetcherConfig
impl Sync for PrefetcherConfig
impl Unpin for PrefetcherConfig
impl UnwindSafe for PrefetcherConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more