Closed jfmengels closed 3 years ago
Awesome! I did a benchmark just to check. In small lists, the performance increase appears to be around 5%: https://ellie-app.com/dnMGv4hW5kza1
I need to get into the habit of benchmarking, thanks setting it up!
For posterity's sake, here is my benchmark results
So not as good as the 5% you're seeing, but definitely an improvement, and stack safety :+1:
This makes
gatherWith
tail-call optimized. I haven't benchmarked it, but since there is no other significant change in this function, I can only imagine that the performance improved.Note: I discovered this issue with https://package.elm-lang.org/packages/jfmengels/elm-review-performance/latest/