This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-17
Channels
- # announcements (8)
- # atom-editor (8)
- # aws (1)
- # babashka (96)
- # beginners (128)
- # calva (7)
- # cider (12)
- # cljsrn (1)
- # clojure (75)
- # clojure-europe (28)
- # clojure-hamburg (2)
- # clojure-italy (7)
- # clojure-nl (7)
- # clojure-norway (3)
- # clojure-uk (13)
- # clojurescript (26)
- # conjure (2)
- # cursive (18)
- # data-science (7)
- # datalog (21)
- # datomic (9)
- # duct (15)
- # expound (29)
- # figwheel-main (14)
- # fulcro (59)
- # helix (4)
- # jobs (2)
- # kaocha (19)
- # leiningen (15)
- # luminus (4)
- # malli (57)
- # meander (2)
- # off-topic (2)
- # pathom (12)
- # pedestal (8)
- # re-frame (53)
- # reitit (9)
- # remote-jobs (1)
- # shadow-cljs (64)
- # spacemacs (1)
- # specter (2)
- # tools-deps (12)
- # tree-sitter (2)
- # vim (11)
- # xtdb (17)
Are there ways to optimize the reload time of figwheel / figwheel-main?
Seems to take anywhere between a second and 4 seconds for my app to discover a difference and load it. I wonder if it could be faster.
I’ll try different tones, perhaps something a bit darker 🙂
But in all seriousness, yeah, I bet the main problem is all the dependencies/requires
That’s what you were referring to, right?
Sheer size.
Yeah *times and sheer size. I had a 1kloc namespace on a project, that I found the day I decided to investigate reload times
Dayum!
Did you manage to shave real time off?
Hm, that sounded like a lot, but actually there are probably a few ns’es like that on this project. I think they’re trunks though, not leaves, in the require
-graphs.
In my case it was essentially a utility namespace. There wasn't a win quick enough relative to the time I had left on the project so I left it. No point breaking things for people!
Sounds like the right choice. I find that usually, util namespaces are not that difficult to break up into smaller namespaces, so performing the refactoring itself is not that costly or error fraught; however, if the depending ns’es end up requiring most of the util ns’es anyway, the performance gain might not even be palpable.