declare @differences open file1 and file2 read chunk1 from file1 (64mbyte) read chunk2 from file2 (64mbyte) while (chunk1 contains data) compute h1: md5hex of chunk1 compute h2: md5hex of chunk2 if h1 != h2 compute @diff: pass chunk1 and chunk2 to Algorithm::Diff append @diff to @differences end-of-if read chunk1 from file1 (64mbyte) read chunk2 from file2 (64mbyte) end-of-while close file1 and file2 #maybe combine adjacent deltas in @differences (eg: by line number) report @differences