Skip to content

Excessive memory usage / killed when compiling BitArray case #4932

@evanlua

Description

@evanlua

When trying to compile a case expression case.zip with many BitArray matches (used for parsing HTTP headers), the compiler process gets killed by the OS.

If I remove some of the case branches, the project compiles, but it still takes 4–5 seconds for a very small file, which feels unexpectedly slow.

Version: gleam 1.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributions encouraged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions