Code: Select all
IF the files size are equal AND greater than 500 MB THEN
create MD5_1 for file 1
create MD5_2 for file 2
IF MD5_1 = MD5_2 THEN
popup message "The two files are identical!"
ELSE
call compare_by_contents procedure
END IF
END IF
It takes about 3 minutes to say two files of size 600 MB are identical
It takes about 5 minutes to say two files of size 1 GB are identical
Using above pseudo code
It will take about 20 seconds to say two files of size 600 MB are identical (10*2 seconds for creating MD5)
It will take about 46 seconds to say two files of size 1 GB are identical (23*2 seconds for creating MD5)
above timing are calculated with Win 7 64bit/ 2Ghz C2D/ 2GB Ram
What do you think?