pub struct LambdaOptimizer { /* private fields */ }Expand description
Cold start optimization and pre-warming strategies for Lambda functions
Implementations§
Source§impl LambdaOptimizer
impl LambdaOptimizer
pub fn new() -> LambdaOptimizer
pub fn with_targets(self, targets: PerformanceTargets) -> LambdaOptimizer
pub fn enable_aggressive_mode(self) -> LambdaOptimizer
Sourcepub fn generate_optimization_plan(
&self,
annotations: &LambdaAnnotations,
) -> Result<OptimizationPlan, Error>
pub fn generate_optimization_plan( &self, annotations: &LambdaAnnotations, ) -> Result<OptimizationPlan, Error>
Generate optimization plan based on Lambda annotations and event type
Sourcepub fn generate_lambda_profile(&self, plan: &OptimizationPlan) -> String
pub fn generate_lambda_profile(&self, plan: &OptimizationPlan) -> String
Generate Cargo profile for Lambda optimization
Sourcepub fn generate_optimized_build_script(
&self,
plan: &OptimizationPlan,
annotations: &LambdaAnnotations,
) -> String
pub fn generate_optimized_build_script( &self, plan: &OptimizationPlan, annotations: &LambdaAnnotations, ) -> String
Generate build script with optimization flags
Sourcepub fn generate_performance_monitoring(
&self,
_annotations: &LambdaAnnotations,
) -> String
pub fn generate_performance_monitoring( &self, _annotations: &LambdaAnnotations, ) -> String
Generate performance monitoring code
Sourcepub fn estimate_performance_impact(
&self,
plan: &OptimizationPlan,
) -> PerformanceEstimate
pub fn estimate_performance_impact( &self, plan: &OptimizationPlan, ) -> PerformanceEstimate
Estimate performance impact of optimizations
Trait Implementations§
Source§impl Clone for LambdaOptimizer
impl Clone for LambdaOptimizer
Source§fn clone(&self) -> LambdaOptimizer
fn clone(&self) -> LambdaOptimizer
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 LambdaOptimizer
impl Debug for LambdaOptimizer
Source§impl Default for LambdaOptimizer
impl Default for LambdaOptimizer
Source§fn default() -> LambdaOptimizer
fn default() -> LambdaOptimizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LambdaOptimizer
impl RefUnwindSafe for LambdaOptimizer
impl Send for LambdaOptimizer
impl Sync for LambdaOptimizer
impl Unpin for LambdaOptimizer
impl UnwindSafe for LambdaOptimizer
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> 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