cljs-react-perf
cljs-react-perf copied to clipboard
Performance experiments w/ CLJS React libraries and techniques.
The [sablono wiki](https://github.com/r0man/sablono/wiki/Optimization-Tips#avoiding-ambiguity-of-attributes--children) suggests that Sablono can emit faster code when an element has an unambiguous attribute map. That: ```clojure [:div {} (foo)] ``` is faster than ```clojure [:div (foo)]...
Here's a repo with some macros to optimize Rum & Sablono https://github.com/funcool/rumext Basically there are a couple of additional compile forms for Sablono and lazy-component function which delays Rum component...
Consider a UI is derived entirely from a single state atom, where all updates go through the same codepath. ```clojure (def !state (atom {})) (rum/defc *app [app-state] ...) (defn trigger!...