From 78136895a0a2b1258ee3f9a8deb91cc49815d7ca Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 21 Jun 2021 15:08:15 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- diff2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diff2.js b/diff2.js index 2e2d53f..cdd0f8b 100644 --- a/diff2.js +++ b/diff2.js @@ -730,6 +730,8 @@ function(A, B, cmp){ return gaps }, []) } +// XXX if two sub-trees are different, to we treat them as a big set of +// atomic changes or replace X with Y??? // XXX at this point array indexes are treated as changes, i.e. if we // insert an item into an array, this effectively changes all other // items (shifting their indexes by the number of items inserted)...