Skip to content

Determine why this code causes the Erlang compiler to run for a very long time #4985

@lpil

Description

@lpil

When Erlang inlining is enabled this code takes extreme amounts of time to compile: https://github.com/bondiano/telega-gleam/blob/33b3bfc2b7c45cd88d52e3edd4f45d9740190eb0/src/telega/update.gleam#L225

The long change of use expressions seems to be related. Let's determine a minimal reproduction in Erlang so we can report the bug to the Erlang folks.

Thanks to @sean-hale-dev for finding this and @bondiano for initial investigation

Prior discussion bondiano/telega-gleam#27

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