Commit b4b1b01
menu_cbs_deferred_push: convert the uniform dispatch cases to a table
Same treatment as the sublabel switch: 106 groups - 107 labels,
each case a bind and a break - become one const table of label and
callback rows, guards carried inside, linear scan, read-only
link-resolved storage; the sixteen cases with extra logic stay in
the residual switch, and the block's unconditional return after the
dispatch is preserved so a known enum still never falls through to
the label scan. A transient in-binary referee holding the original
function bound identical pointers across all 6,403 enums, zero
mismatches, against this exact form. The file drops 186 lines and
the object 2.2 kilobytes.1 parent f5c0413 commit b4b1b01
1 file changed
Lines changed: 134 additions & 320 deletions
0 commit comments