You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
Purescript automatically generates generic instances which have this shape. The input ADT in this case is 30 constructors without arguments, and the generic instance turns them into this linked-list looking shape. The erlang output above is minified.
I haven't been able to get erlc master building on my machine, but the test file and the prod file are incredibly similar, and replacing that function body with a simpler case reduces compile time down to sub-second. Thus, I'd bet that this bug is fixed, even if I can't confirm it. Big thanks.
Describe the bug
O(2^n) perf on beam_validator_strong and beam_validator_weak passes
To Reproduce
Comple this file, with one row uncommented each time. I've added the compile time for some rows on my machine as comments.
Expected behavior
Better time complexity :)
Affected versions
Only tested 24.2.1 so far.
Additional context
Purescript automatically generates generic instances which have this shape. The input ADT in this case is 30 constructors without arguments, and the generic instance turns them into this linked-list looking shape. The erlang output above is minified.
The text was updated successfully, but these errors were encountered: