Message132767
If you try to difference the attached files with difflib and a html difference it take 10 minutes or more. In comparison other differencing tools like windiff and araxis merge will show the diff within a second.
Example code I'm using is:
sourceText = open("source.xml", "rU").readlines()
targetText = open("target.xml", "rU").readlines()
html_diff = difflib.HtmlDiff(tabsize=4)
result = html_diff.make_file(sourceText, targetText, "Source", "Target", context=True, numlines=10)
f = open('c:/libdiff_html.html', 'w')
f.write(result)
finish() |
|
Date |
User |
Action |
Args |
2011-04-01 21:25:39 | mkorourk@adobe.com | set | recipients:
+ mkorourk@adobe.com |
2011-04-01 21:25:39 | mkorourk@adobe.com | set | messageid: <1301693139.57.0.361562219135.issue11740@psf.upfronthosting.co.za> |
2011-04-01 21:25:38 | mkorourk@adobe.com | link | issue11740 messages |
2011-04-01 21:25:38 | mkorourk@adobe.com | create | |
|