-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to reduce the compiled size of the Elm compiler
Find a refactoring that massively reduces the size of the compiled Elm compiler - by more than 80%. After running experiments this week, I found a problem with compiling the '++' operator, causing exponential growth of the emitted code. The refactoring in this commit replaces usages of this operator with more specific functions, 'String.join' and 'List.concat', depending on the argument type.
- Loading branch information
Showing
7 changed files
with
272 additions
and
172 deletions.
There are no files selected for viewing
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
131 changes: 74 additions & 57 deletions
131
implement/elm-time/ElmTime/compile-elm-program/src/ElmCompiler.elm
Large diffs are not rendered by default.
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
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
Oops, something went wrong.