Util.Dif should handle list inserts and deletions better (but not sure exactly how)
When adding a new item in the middle of, or deleting an item from the middle of the second list to compare using Util.Dif, the rest of the list is flagged as out of sync since it uses an index-based comparison. In other words, Util.Dif compares elements at index 0 with each other, then at 1 with each other, etc.
It would be better if more advanced diffing algorithm was used to do this and could flag the entire element as red if it was removed, the entire element as green if it was added, or individual values with red/green to signal a change.
3
votes
Lasse Karlsen
shared this idea