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

System.OutOfMemoryException with two dissimilar files - one very large #29

Closed
GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I'm using the C# version of the code. I get a 'System.OutOfMemoryException'  
with the two attached files. Note that these files are not similar at all, 
apart from being XML files, and the one is very large. The exception occurs in:

   protected List<Diff> diff_map(string text1, string text2)

This is the code I use to call it:

var dmp = new DiffMatchPatch.diff_match_patch();
dmp.Diff_Timeout = 0;
dmp.Diff_EditCost = 4;
dmp.Match_Threshold = 0.5F;
var diffs = dmp.diff_main(text1, text2, true);


Original issue reported on code.google.com by garethha...@gmail.com on 9 Aug 2010 at 11:11

Attachments:

@GoogleCodeExporter
Copy link
Author

Yes, both the speed and the memory footprint are concerns.  They are constantly 
being improved, but this will be a never-ending process (until it can diff 
infinitely large files in zero time and 0 bytes).  Merging with the existing 
performance bug.

Original comment by neil.fra...@gmail.com on 26 Aug 2010 at 4:40

  • Changed state: Duplicate

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

No branches or pull requests

1 participant