<div dir="ltr"><div>On Sun, 25 Dec 2016 15:28:52 +0100 Jérémy Bobbio <<a href="mailto:lunar@debian.org">lunar@debian.org</a>> wrote:<br><br></div>Hi Lunar!<br><div><br>> You would not have to read the file twice as long as you do the hash<br>> in the difference module, when each line is actually fed to diff.<br>> A similar trick is already used to cope with files that are too long,<br>> see diffoscope.difference.make_feeder_from_raw_reader()<br>> <br><br></div><div>I implemented what I believe was your idea in the attached patch. Thank you for pointing me to it!<br></div><div>Still, I don't think that feature worth invading into <a href="http://diff.py/diffoscope.py">diff.py/diffoscope.py</a> modules. It doesn't speed up comparison significantly, because call to diff still takes most of the time on big files with difference only in line order. Besides, I can't think of many examples of where that feature would be needed, save from text files.<br><br></div><div>In any case, thank you again for taking time to provide me with that idea!<br><br><br></div><div>Maria<br></div></div>