Skip to main content

DEFAULT_MAX_ALIGNMENT_PRODUCT

Constant DEFAULT_MAX_ALIGNMENT_PRODUCT 

Source
pub const DEFAULT_MAX_ALIGNMENT_PRODUCT: u64 = 25_000_000;
Expand description

Default bound on the row-alignment m × n table (RFC-035 §5.1, §9).

Chosen from a direct measurement of Vec<Vec<u32>> allocation cost at several square sizes (see Handoff 04’s review request for the full table): 5,000×5,000 (this bound) measured ~95 MB / ~15 ms; the previous unbounded worst case — two sheets each at the old row-count guard’s 50,000-row ceiling — measured ~9.5 GB / ~3.3 s just to zero-allocate the table, before any comparison work. Two sheets each up to ~5,000 rows (or any combination whose product stays under this bound) get full alignment; larger degrades to positional with a diagnostic (RFC-035 §5.2) rather than risking the unbounded case.