Skip to content

Conversation

@josevalim
Copy link
Contributor

Union of anonymous functions are currently expensive in Elixir's v1.19 implementation. This removes this patterns from the codebase in favor of direct function calls.

We are trying to fix this in the Elixir compiler itself but, in case we can't in time for v1.19, this provides a fast version that is still backwards compatible. We just move constructs around.

Union of anonymous functions are currently expensive
in Elixir's v1.19 implementation. This removes this patterns
from the codebase in favor of direct function calls.
@mhanberg mhanberg changed the title Avoid union of anonymous functions refactor: avoid union of anonymous functions Sep 29, 2025
@mhanberg mhanberg merged commit 1d728cf into elixir-tools:main Sep 29, 2025
37 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants