Whenever a mutative splice() operation is done on an observable array the arguments to splice() are stored as _diff on the new array value.
We should document that _diff is meant to be used to implement efficient rendering of lists by splicing the splice differences into an <ul> directly without having to do an O(n) diff(prev, curr).
We should also iterate on the changes.
cc @Matt-Esch feedback for performance appreciated.
Whenever a mutative
splice()
operation is done on an observable array the arguments tosplice()
are stored as_diff
on the new array value.We should document that
_diff
is meant to be used to implement efficient rendering of lists bysplicing
the splice differences into an<ul>
directly without having to do an O(n)diff(prev, curr)
.We should also iterate on the changes.
cc @Matt-Esch feedback for performance appreciated.