Skip to main content

DYNAMIC_SHAPE_ID_BASE

Constant DYNAMIC_SHAPE_ID_BASE 

Source
pub const DYNAMIC_SHAPE_ID_BASE: u32 = 0x8000_0000;
Expand description

Base for dynamically-interned shape IDs. Chosen so that Program::record_shapes indices (which start at 0 and grow up) cannot collide with dynamic IDs even for pathologically large programs. Compile-time records will hit a different IC slot outcome than dynamic records with the same field set — that’s the cost of keeping ID spaces disjoint; the slice-2b measurement found 0 mixed-flavor sites in real workloads.