Skip to main content

MEGABUF_SLOTS

Constant MEGABUF_SLOTS 

Source
pub const MEGABUF_SLOTS: usize = 65_536;
Expand description

How many slots a preset’s megabuf holds.

EEL2’s reference megabuf is 8 388 608 slots, which at f32 is 32 MB per preset — by a wide margin the largest memory number Plan 0100 could introduce, and one that would be allocated whether or not a preset touched a single slot. The corpus census says only 4 % of it (435 of 10 347 files) mentions megabuf or gmegabuf at all.

So the arena is sized from what the corpus plausibly uses rather than from the reference: 65 536 slots, 256 KB, allocated once per loaded preset and never grown. An index outside it reads 0 and writes nowhere — total, like every other edge here.

This is a number with a shelf life and a named successor. Plan 0100 Phase 5’s --report runs the converter over the corpus and ranks the failure classes; a preset whose megabuf addressing runs past this appears there by name rather than silently rendering wrong. Raise it from that evidence, not from a hunch.