pub enum Tier {
T0 = 0,
T1 = 1,
T2 = 2,
T3 = 3,
}Expand description
A hotness tier — how much optimization budget a unit has earned (HOTSWAP §4.1).
Each tier pays for strictly more than the one below; T3 with an all-on config
reproduces today’s whole-program optimize_for_run, bit-for-bit (the
compatibility + soundness anchor). The mechanism that escalates a unit through
the tiers (call/back-edge counters, thresholds) lives in the VM; this is just
the policy the optimizer reads.
Variants§
T0 = 0
Baseline: raw parse → bytecode, no optimization.
T1 = 1
Warm: Cheap opts.
T2 = 2
Hot: Cheap + Medium opts (PE-light).
T3 = 3
Very-hot: every opt (PE-full, unroll, recursion unfold).
Implementations§
Trait Implementations§
Source§impl Ord for Tier
impl Ord for Tier
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Tier
impl PartialOrd for Tier
impl Copy for Tier
impl Eq for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
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