This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-18
Channels
- # announcements (5)
- # aws (14)
- # babashka (5)
- # beginners (39)
- # brompton (9)
- # chlorine-clover (10)
- # cider (2)
- # clj-kondo (107)
- # cljfx (2)
- # cljsrn (7)
- # clojure (40)
- # clojure-australia (2)
- # clojure-conj (5)
- # clojure-europe (11)
- # clojure-japan (2)
- # clojure-nl (3)
- # clojure-spec (1)
- # clojure-uk (6)
- # clojurescript (8)
- # cursive (20)
- # datahike (6)
- # degree9 (2)
- # deps-new (2)
- # development-containers (11)
- # fulcro (26)
- # jobs (1)
- # joker (1)
- # kaocha (1)
- # lambdaisland (1)
- # malli (6)
- # membrane (1)
- # nbb (1)
- # news-and-articles (2)
- # off-topic (3)
- # pedestal (23)
- # re-frame (19)
- # reagent (6)
- # sci (110)
- # shadow-cljs (7)
- # tools-deps (9)
- # xtdb (20)
Hi, this post mentions their "memoized DOM" being an order of magnitude faster than "virtual DOM" (and compares against React/Vue): https://www.freecodecamp.org/news/the-virtual-dom-is-slow-meet-the-memoized-dom-bb19f546cc52/ Does anybody have comparative notes w.r.t. (immutability and) Reagent?
Noticed via this recent thread: https://news.ycombinator.com/item?id=28207662
not sure exactly what you're asking, but reagent is a wrapper around React. so their comparison between the "memoized DOM" and the current version of React should read as the same for Reagent
that being said there's plenty more nuance to the problem then the way they are presenting it. the overhead of the virtual DOM is actually not that interesting IME
the virtual DOM can also allow more interesting things like prioritizing and slicing work up so that the page isn't blocked when you do have something computationally intensive going on, which isn't possible to do if you're doing direct dom manipulation
@U4YGF4NGM The post mentions "Immutability", and not sure if their benchmark uses React in a mutable way. I'm guessing that would have performance implications. So, I wanted to find out if anybody has compared that with how it relates to Reagent.