-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Hanging on generateDiffRows #188
Comments
Stale issue message |
Still hoping for a fix. |
Stale issue message |
Still hoping for a fix. |
Sorry, that I was unavailable for so long. I build a test around your data. May I introduce it into the project or are there any bits of non-publishable data in it? One first remark. The difftools some time ago introduced a second diff algorithm: a variant of Myers algorithm with linear space usage which performs usually better for large datasets. You could try this one. Using the following snipped you introduce a different algorithm into the library: List<DiffRow> rows = generator.generateDiffRows(original, DiffUtils.diff(original, revised, new MyersDiffWithLinearSpace<String>() )); Btw, you could set the default algorithm using However, after digging around I was not able to do the diff with the original algorithm. The line normalizer and word splitter inflate the dataset so drastically, that it is not usable. The linear space algorithm generates other change sets. |
You should know the linear space algorithm is not tested as deeply as the original implementation. |
Thanks for looking into this.
Yes, go ahead. I'll try your suggestion of the alternate algorithm the next time I return to that particular project, but sadly won't get to it any time soon. |
The code:
The files: test.zip
generator.generateDiffRows
is hanging for me with these 2 files.System
The text was updated successfully, but these errors were encountered: