Skip to content

Explore ways to reduce code size of match bodies #97

@morganthomas

Description

@morganthomas

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:

  1. 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.
  2. When useful, place other code blocks into the unreachable portions of arms which are currently filled with padding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions