figwheel-main

reefersleep 2024-08-30T08:21:53.609339Z

I asked back in 2020, and I'm still looking for tips 😄 Any good ideas on how to optimize figwheel-main reload time? Some pages in our SPA are very slow to reload.

2024-08-30T11:50:01.624849Z

I had a bit more luck switching to shadow cljs for a few our large apps. Seemed quicker on average on the reload time. There were a few reasons for that. Most came down to the cljs compilation stuff. Shadow does a bit of it differently. I’d say you may want to try profiling when it’s slow and see where the time is. Some things can be helped like being sure it isn’t spending time scanning for node deps or something if you aren’t using those.

👍 1
2024-08-30T11:50:16.973469Z

Some compiler options can help I mean. They did for us for a while.

🤞 1
reefersleep 2024-08-30T18:12:59.380899Z

Thanks @mikerod , I'll give it a go