re: Tour of an Open-Source Elm SPA VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hello, thanks a lot for the great article. I have a question regarding handling a lot of messages in the Main file for update section: type Msg = S...
 

There's a bug in the 0.18 compiler that has a big performance regression when you have case-expressions with many branches (as I recall, 32 is where it kicks in). The bug will be fixed in 0.19, but in the meantime you can split some of the messages out into a separate union type just to split the one big case-expression into two case-expressions.

Does that make sense? Happy to elaborate if it's unclear!

code of conduct - report abuse