DEV Community

loading...

Discussion on: Tour of an Open-Source Elm SPA

Collapse
rtfeldman profile image
Richard Feldman Author • Edited

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!

Forem Open with the Forem app