elm-optimize-level-2
elm-optimize-level-2 copied to clipboard
Optimizations for Zip like functions
List Zipping
For the existing implementions of list zipping functions, (ie List.map2, List.map3, List.map4, and List.map5) Elm builds a Javascript array containing the results and then converts it to an Elm List.
We can replace this implementation with a faster one that builds the result List with no intermediate steps.
Results Summary
- The improved implementations of
List.map2andList.map3are benchmarked here, which sees performance improvements over Elm's normalList.map2andList.map3.