Bigger LiveView Templates cause slow recompilation times of the view

Hello,

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!

3 Likes

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.

https://gist.github.com/gajuro/7bc36a748d825c04ef28ca10e8b20503

Any hint is much appreciated.

2 Likes