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

Make isInfixOf tail-call optimized #148

Closed jfmengels closed 3 years ago

jfmengels commented 3 years ago

Becnhmark: https://ellie-app.com/dnQMpprLrDPa1

Screenshot from 2021-06-05 23-32-04

Note: There are still quite a few functions that can be optimized in this package, but I likely won't propose PRs for these, as they become a bit more complex.

You can run the following to find them:

npx elm-review --template jfmengels/elm-review-performance/example --rules NoUnoptimizedRecursion
Chadtech commented 3 years ago

Awesome! Thanks again