Is there a way/tool to show differences between two files side by side only highlighting differences in a similar way kdiff3
does that but with a tool that is reasonably fast?A similar question was asked here almost 6 years ago but no useful answers given. Even better a tool that understands data structure such as csv
? I often deal with data files that might differ in a single column by a sign only or format of the number and for this purpose diff
is quite useless. kdiff3
shows the data like this:
Which immediately tells you what is different between the data files. It not only shows you that the whole line is different but also what is different. But, kdiff3
is insanely inefficient, comparing 2 17 MB files takes 10 minutes which is beyond ridiculous. (I once tried something called total commander on windows which has this function and its comparing efficiency blew my mind). Being aware of data structure and showing only the different fields would be a huge advantage but all csv
comparators that I found cannot deal with a situation that one of the files has different number of columns (say you add a column to your data) and they can only compare the same structure and so i am good with the kdiff3
or total commander
style approach.
I tried vimdiff
--- says it cannot run diff on the files, meld
--- slow and in the end does nothing, icdiff -- slow, etc.
Just as comparison and an illustration what i am looking for, i reached to a virtual machine compared the same two files with total commander
(over network connection) and in 2 seconds (compared to 10 minutes of kdiff3
on local ssd), i got: