As a leanVM developer, I want to reduce the compiled code size of match bodies, so that the program trace takes less time to commit to. There are ways that we could reduce the compiled code size of match bodies. In particular:
- When arms are very different in size, extract each arm into a separate label, and make the match table just consist of jumps to those labels.
- When useful, place other code blocks into the unreachable portions of arms which are currently filled with padding.