Skip to content

pattern match constant constructors first #13

Closed
@xrchz

Description

@xrchz

An optimisation to pattern-match compilation is to reorder matches so that constant constructors come first, because the test for them is cheap. Combined with exhaustiveness checking, this can make some cases very fast. Such reordering could probably happen in exhLang.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions