Bytecode-aware optimization
Last updated
Zen Studio Live limits final bytecode to 65,519 bytes.
Compile and record exact size/load first.
Remove unused const strings/images/tables; they still occupy data bytes.
Narrow const element types when safe.
Factor genuinely repeated executable blocks into functions.
Simplify duplicate menu rendering/lookup logic.
Keep stack depth in view while flattening giant expressions.
Recompile and regression-test after each reduction.
Unused user functions and combos can be removed by optimization, but unused const data remains material.
Last updated

