This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-13
Channels
- # announcements (27)
- # beginners (184)
- # boot (4)
- # cider (9)
- # cljdoc (1)
- # cljsrn (2)
- # clojure (208)
- # clojure-austin (1)
- # clojure-conj (4)
- # clojure-dev (20)
- # clojure-europe (15)
- # clojure-italy (66)
- # clojure-losangeles (2)
- # clojure-nl (32)
- # clojure-spec (64)
- # clojure-uk (80)
- # clojurescript (50)
- # cursive (2)
- # data-science (3)
- # datomic (17)
- # emacs (1)
- # events (6)
- # fulcro (3)
- # jobs (15)
- # juxt (5)
- # klipse (2)
- # leiningen (31)
- # nyc (3)
- # off-topic (34)
- # re-frame (2)
- # reagent (9)
- # schema (1)
- # shadow-cljs (52)
- # specter (5)
- # sql (3)
@dominicm I'd like to second what @lilactown said, there might be situations where Reagent might be slower than React, but in general use, you are unlikely to run into them. Also, you can concoct situations where Reagent is actually faster. Etc.
@doglooksgood my guess is that you are generating a giant ball of DOM.
This may help https://github.com/Day8/re-frame/blob/master/docs/Performance-Problems.md#2--on-big-structures
Looks like migrating Reagent away from deprecated componentWillMount
lifecycle method wasn't too complicated: https://github.com/reagent-project/reagent/pull/443
Re, yesterdays performance discussion. In certain cases using Sablono or Hicada with Reagent can improve the performance. Reagent has to convert all hiccup structures into React elements runtime (as we don't use any macros) but these libs can compile most Hiccup into React element calls in macro compliation time. (https://github.com/rauhs/hicada). Though the Reagent implementation caches the conversion so usually it should be quite okay.
UIx is saying it's interpreter (i.e. Hiccup to React elements on runtime) is 2x faster than Reagent so I guess there is room to optimize Reagent implementation.
@mikethompson great resource! looks like reagent is fast when compare to vanilla react. I'll take a look at the re-frame performance doc.
And well, @roman01la already asked me I'd be interested merging some performance improvements he found when creating UIx. And obviously I said I'd be very interested in them 🙂