Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Binary diff mode. #12

Open
chrisvest opened this issue Apr 24, 2019 · 1 comment
Open

Binary diff mode. #12

chrisvest opened this issue Apr 24, 2019 · 1 comment

Comments

@chrisvest
Copy link
Owner

chrisvest commented Apr 24, 2019

It's not entirely clear what this means, precisely.

Something already exists for this use case, which may provide inspiration: https://github.com/madsen/vbindiff

Best bet is probably the Myers diff algorithm, or a variant thereof:

The Myers diff can be implemented in linear space, which is quite compelling. There will likely be some up-front computing cost to produce the edit sequence, but once built and indexed, I imagine it'd be possible to inject the necessary edit sequence elements into the rendering of arbitrarily positioned and sized view ports.

And important challenge is that the algorithm might be faced with gigabyte deltas in terabyte files, and it must still finish in "reasonable" time.

Keyboard shortcuts for navigating to next and previous difference would also be helpful.

Finding alignments like in BLAST might also be useful:

@chrisvest
Copy link
Owner Author

Speaking of alignment, it's been done already so there's a good opportunity for inspiration or cross-pollination: https://github.com/8051Enthusiast/biodiff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant