Aeolun / react-diff-viewer-continued

A simple and beautiful text diff viewer component made with Diff and React.
https://aeolun.github.io/react-diff-viewer-continued/
MIT License
113 stars 34 forks source link

Discussion- Is it possible to compare more than 2 variables ? #45

Closed ObaidAshiq closed 3 months ago

ObaidAshiq commented 4 months ago

I was wondering if we can extend the cababiliti to diff not just 2 things, but say more things Concern i have, how much it would impact performance ?

Aeolun commented 4 months ago

I've thought about this before, but I don't think the diff algorithm is really made to compare more than two things at a time. As such it would be too much of an effort, and beyond the scope of where I'm willing to take this. If someone has a different 'triple or more' diff library, then maybe the display can be implemented.

ObaidAshiq commented 3 months ago

As of now, it is not possible. Comparing algorithm isn't built like that