elm-community / list-extra

Convenience functions for working with List.
http://package.elm-lang.org/packages/elm-community/list-extra/latest
MIT License
135 stars 58 forks source link

Fix performance regression in List.Extra#init #93

Closed brianvanburken closed 6 years ago

brianvanburken commented 6 years ago

Commit 5fa63ca introduced a performance improvement for non empty lists but also a ~70% performance regression for empty lists. This commit fixes the regression while also improving the performance ~30% for empty lists before 5fa63ca.

https://ellie-app.com/5K7f2nGwsa1/1 for benchmarks.

zwilias commented 6 years ago

Good stuff! :)

Chadtech commented 6 years ago

Nice! Looks good to me. Ill merge this soon.