Diff by cursor
Diff
computes the differences between 2 trees. Currently it does not use the cursor.
The typical usecase of Diff
is to take the list of diffs between each parent and its child in a chain: if we have [n1; n2 ..; nm]
, we want to get [diff n1 n2; diff n2 n3; ..; diff n_m-1 nm]
.
Since the current Diff
does not use the cursor, diff n2 n3
must perform the same node loadings of n2
done in diff n1 n2
.
Make Diff
use the cursor.