mdgriffith / elm-optimize-level-2

BSD 3-Clause "New" or "Revised" License
129 stars 14 forks source link

Add replacement for List.filterMap #75

Open jfmengels opened 2 years ago

jfmengels commented 2 years ago

This is applying the same technique from other List optimizations and applying it to List.filterMap.

Benchmark can be found here.

Here are the improvements (all taken using eol2) for Chrome:

Screenshot from 2021-12-14 17-37-19

and for Firefox: Screenshot from 2021-12-14 18-04-47