@mjackson That’s true, but diffing has its own set of performance trade-offs. It’s not an unvarnished win.
@fivetanley @mjackson @floydophone @tomdale hard to implement ListView with diffing.
-
-
@wycats@fivetanley@floydophone@tomdale No, it's not. Have you seen the list view on http://jlongster.com/Removing-User-Interface-Complexity,-or-Why-React-is-Awesome … ?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats 3. Diffing approach makes it easy to reuse DOM nodes@fivetanley@mjackson@tomdale -
@mjackson@floydophone@fivetanley@tomdale don't see why the observable approach can't reuse DOM nodes. -
@wycats@floydophone@fivetanley@tomdale Seems like it would need to be built in to {{#each}}. In any case, the lib should do it not me. -
@mjackson@floydophone@fivetanley@tomdale our current lib impl reuses nodes far too infrequently but not fundamental. Improving. -
@wycats Can the user decide when to reuse vs destroy/create?@mjackson@fivetanley@tomdale -
@floydophone@mjackson indicated he wants the lib to decide for him.@fivetanley@tomdale -
@wycats@floydophone@fivetanley@tomdale And I think it should default to reusing as much as possible. Make me work to have it otherwise. - 1 more reply
New conversation -
-
-
@wycats ...because approximately 100% of the time your list is sorted by something@fivetanley@mjackson@tomdale -
@floydophone@fivetanley@mjackson@tomdale don't see how inserting a single row in a big list can ever be DOM constrained.
End of conversation
New conversation -
-
-
@wycats 4. Diffing only tracks what is actually rendered. Observables must track entire underlying model...@fivetanley@mjackson@tomdaleThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats 2. For bigger lists, DOM becomes bottleneck, not diffing@fivetanley@mjackson@tomdaleThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats 1. For shorter lists, diffing is subframe@fivetanley@mjackson@tomdaleThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats It's actually very nice for this from a perf perspective. It is non obvious. Let me explain@fivetanley@mjackson@tomdaleThanks. 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.