Performance drops exponentially with deeply nested lists #778
Labels
performance
upgraded-parser
Issues that are best solved after upgrading to the elm-compiler-0.19 parser
Milestone
Hey,
we have found a possible performance bug with our code - one of our BE engineers copy/pasted deeply nested HTML structure and suddenly the elm-format takes 20s on 500 lines file. We were able to narrow the problem to having deeply nested lists - I have created SSCCE for it here:
https://github.com/kraklin/elm-format-nesting-bug-sscce
Current way around is to split those deeply nested lists into several functions once it exceeds cca 10 levels of nested lists.
The text was updated successfully, but these errors were encountered: