EPISODE · Aug 16, 2021 · 1H 8M
037: Performance in Elm
from Elm Radio · host Dillon Kearns
elm-review-performanceTail call optimizationsJeroen's blog post on Tail-call optimization in ElmEvan Czaplicki's chapter on Tail-Call Optimization and how to write optimized codeLighthouse Elm Radio episodeJu Liu's Performant Elm blog post seriesAvoid memoized state when possible to avoid stale dataHtml.LazyElm's html lazy only works when the function and args have the same reference as before. List.map will return a list with a new reference, for example.Elm has function-level dead code eliminationReferencing a record pulls the whole record in no matter how many fields are used directlybcp-47-language-tag packageElm list extra gets split by function, unlike lodash which needs to be splitElm Core Dict package has O(logn) complexity for operations like insertJavaScript Objects aren't optimized for removing/adding properties"What's Up With Monomorphism"elm-optimize-level-2elm-explorations/benchmarkJeroen's list-extra PRs (with reference to the benchmark for it) for functions gatherWith isInfixOfwebpagetest.org (or web.dev performance testing)Netlify Lighthouse pluginRSLint - fast version of ESLint, but doesn't have custom rulesInstructions to minify Elm codeJake and Surma talk about optimizing sites - Setting up a static render in 30 minutesJake Archibald's talk explaining JavaScript's event loop and requestAnimationFrame - In The Loop
What this episode covers
We talk about performance tuning Elm applications.
NOW PLAYING
037: Performance in Elm
No transcript for this episode yet