-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Elixir is slow to compile functions with many heads, which is how we generate enums in this library. It's faster to compile an equivalent case statement inside a single function head. I observed that it reduced the time to compile an enum with about 2500 values from 24s to 3s.
- Loading branch information
Showing
2 changed files
with
84 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters