-
Notifications
You must be signed in to change notification settings - Fork 175
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
icdiff hanging on large files #213
Comments
This is an issue in python's I think this is "expected behavior" for You could consider filing a bug on |
Is adding an option to use cdifflib something you'd consider? |
@mattrussell2 I think that wouldn't solve the problem? Skimming that package. It looks like a re-implementation in C, but still the same algorithm? (It's also missing some parts of difflib that icdiff depends on, but that might not be insurmountable?) |
Fair enough. Yeah 4x is certainly not going to fix polynomial-time issues. If anyone's interested, the relevant issue re: difflib is here: python/cpython#51180 |
What about using google's diff-match-patch? https://github.com/google/diff-match-patch This also takes an optional timeout parameter. From my very quick reading of the source code here, seems like this library should be interoperable....but I'll dig into it a bit more. |
Hello,
My colleague and I were interested in using
icdiff
inside of a university autograding software (linked here). However, we have encountered an issue where callingicdiff
on somewhat large files seems to hang.I have attached two ~1.5 MB UTF-8 files here, these files do differ. Some notes from running
diff
andicdiff
on these files manually:diff
runs in less than a second.icdiff
as well aspython3 -m icdiff
both seem to hang after displayingfile1.txt
andfile2.txt
.Any input on this issue would be appreciated.
file1.txt
file2.txt
The text was updated successfully, but these errors were encountered: