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.
-
-
To be clear, I'm not a React hater, and diffing has its use cases (like, y'know, in Git). But I do think that the consequences of diffing have to be carefully thought through before deploying it.
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Why not make incremental updates fast, via diffing? Diffing trees can be very fast if you use structural sharing and reference equality to quickly determine that large regions of the tree did not actually change.
-
I don't understand. If you're using structural sharing and reference equality to do your diffing, then you're doing incremental update. So why not just embrace incremental update?
- 6 more replies
New conversation -
-
-
Interesting theory.Are there good examples of frameworks that have non diff based update strategies that keep clear expressiveness of React’s quasi-functional render method? If so great, let’s all move to that! If not you’re just expressing a preference for perf over simplicity
-
That's stacking the deck. The better question is "can I efficiently manage partial updates in my app?". Presuming React's costs is bonkers.
- 3 more replies
New conversation -
-
-
I do think there can be a decoupling advantage to being able to provide a subsystem with a new value and have *it* figure out how to sync up, and with structure sharing & smart comparison it *can* be fast
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
arguably this is one of the biggest defects baked into opengl and it creeps into every part of the stack, both user space and driver space, creating bugs and performance issues
-
Not Doing This might have been the biggest advantage D3D had over GL
- 8 more replies
New conversation -
-
-
Not familiar with servo, so maybe a stupid question, but are the display lists immutable/persistent data structures?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It'd be interesting to see a programming environment that lets you write both, and prove that the incremental updates correctly implement the diffs between states (or derive the incremental operations automatically and let you tweak them or fill in gaps that can't be inferred)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.