pub enum TierMode {
Tiered,
Eager,
Baseline,
}Expand description
WHEN each allowed optimization runs, as opposed to WHICH are allowed
(OptimizationConfig). The sibling policy of HOTSWAP §8: the bitset says what
is permitted; this says at what hotness tier each permitted opt is paid for.
Kept separate from OptimizationConfig (which is serialized / merged per-function
/ normalized) so tier state never pollutes the “which opts” bitset.
Variants§
Tiered
Units climb T0→T3 by hotness — the default.
Eager
Everything optimized upfront at T3 — today’s behavior, the A/B baseline.
Baseline
Never optimize — every unit pinned at T0.
Trait Implementations§
impl Copy for TierMode
impl Eq for TierMode
impl StructuralPartialEq for TierMode
Auto Trait Implementations§
impl Freeze for TierMode
impl RefUnwindSafe for TierMode
impl Send for TierMode
impl Sync for TierMode
impl Unpin for TierMode
impl UnsafeUnpin for TierMode
impl UnwindSafe for TierMode
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