Bigger LiveView Templates cause slow recompilation times of the view


We are using LiveView and we are happy with it. Thumbs up for the approach.

Lately we had to do 4 very big liveview templates (each having 600+ lines of code and 150+ assignment calls), that made the recompilation of the view taking about 30s. We changed the templates so each has its own separate view and it takes about 10s to recompile each view. Though this is a bit better, it’s still very hard for development.

Any thoughts? Thanks.

Can you share an example that produces the long compilation times? Thanks!


Hello @chrismccord, thank you for replying to me.

I attached one the leex templates and a simplified one with 140 assignment calls. Each take about 10s to recompile.

Any hint is much appreciated.