pub struct SplitReduceOpConfig {
pub split_threshold: usize,
pub output_size_bits: u32,
pub max_divisor: usize,
pub min_divisor: usize,
pub enabled: bool,
}Expand description
Configuration for split_reduceop optimization.
Fields§
§split_threshold: usizeMinimum input/output ratio to trigger splitting (default: 32768)
output_size_bits: u32Max output buffer size as 2^N elements (default: 22 = 4M elements)
max_divisor: usizeMax split divisor (default: 256)
min_divisor: usizeMin split divisor (default: 8)
enabled: boolEnable/disable the optimization (default: true)
Implementations§
Source§impl SplitReduceOpConfig
impl SplitReduceOpConfig
pub fn max_output_size(&self) -> usize
Trait Implementations§
Source§impl Clone for SplitReduceOpConfig
impl Clone for SplitReduceOpConfig
Source§fn clone(&self) -> SplitReduceOpConfig
fn clone(&self) -> SplitReduceOpConfig
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 SplitReduceOpConfig
impl Debug for SplitReduceOpConfig
Source§impl Default for SplitReduceOpConfig
impl Default for SplitReduceOpConfig
Source§impl PartialEq for SplitReduceOpConfig
impl PartialEq for SplitReduceOpConfig
impl Copy for SplitReduceOpConfig
impl Eq for SplitReduceOpConfig
impl StructuralPartialEq for SplitReduceOpConfig
Auto Trait Implementations§
impl Freeze for SplitReduceOpConfig
impl RefUnwindSafe for SplitReduceOpConfig
impl Send for SplitReduceOpConfig
impl Sync for SplitReduceOpConfig
impl Unpin for SplitReduceOpConfig
impl UnsafeUnpin for SplitReduceOpConfig
impl UnwindSafe for SplitReduceOpConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more