Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Myers' Diff algorithm #1

Open
utkarshkukreti opened this issue Jun 6, 2015 · 1 comment
Open

Implement Myers' Diff algorithm #1

utkarshkukreti opened this issue Jun 6, 2015 · 1 comment

Comments

@utkarshkukreti
Copy link
Owner

http://www.xmailserver.org/diff2.pdf

@Wilfred
Copy link

Wilfred commented Mar 11, 2022

@utkarshkukreti I'm using this crate in difftastic and it works really well, but it struggles on larger inputs (e.g. >50,000 line file comparisons). What algorithm does diff.rs use today?

Wilfred added a commit to Wilfred/difftastic that referenced this issue Mar 12, 2022
The diff crate has a great ergonomic API, but it doesn't implement
Myers' algorithm and performs badly on large inputs.

utkarshkukreti/diff.rs#1

Now that we have a wrapper wu_diff that provides a similar API,
replace the remaining call sites to diff::slice(). These are
relatively cold, so this is a small performance improvement (1%
instruction reduction).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants