pub struct OptimizerConfig {
pub strategy: OptimizationStrategy,
pub memory_budget: Option<usize>,
pub enable_fusion: bool,
pub enable_memory_optimization: bool,
pub enable_reordering: bool,
pub enable_constant_folding: bool,
pub enable_cse: bool,
pub aggressiveness: f32,
}Expand description
Configuration for the expression optimizer
Fields§
§strategy: OptimizationStrategyOptimization strategy to use
memory_budget: Option<usize>Maximum memory budget (in bytes)
enable_fusion: boolWhether to enable operation fusion
enable_memory_optimization: boolWhether to enable memory optimization
enable_reordering: boolWhether to enable operation reordering
enable_constant_folding: boolWhether to enable constant folding
enable_cse: boolWhether to enable common subexpression elimination
aggressiveness: f32Aggressiveness level (0.0 = conservative, 1.0 = aggressive)
Trait Implementations§
Source§impl Clone for OptimizerConfig
impl Clone for OptimizerConfig
Source§fn clone(&self) -> OptimizerConfig
fn clone(&self) -> OptimizerConfig
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 OptimizerConfig
impl Debug for OptimizerConfig
Auto Trait Implementations§
impl Freeze for OptimizerConfig
impl RefUnwindSafe for OptimizerConfig
impl Send for OptimizerConfig
impl Sync for OptimizerConfig
impl Unpin for OptimizerConfig
impl UnwindSafe for OptimizerConfig
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<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