Tentative conclusion after being burned in performance too many times: Diffing (like in React, but by no means is this unique to React) is a sign that there's something wrong with your framework design.
The one thing worse than diffing is not diffing and just rerendering everything from scratch :)
-
-
what I mean is that diffing VDOM at t2 against VDOM at t1 is one source of inefficiency, but having to generate all that VDOM in the first place is the larger problem, because many component render() functions contain lots of wasteful computation/allocation
-
Yes, exactly. We keeping seeing this in browser engines too: generating the display list often takes more time than painting it :( (Unfortunately it’s hard to avoid regenerating it due to the way CSS stacking order works…)
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.