good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^7: Assistance with file compareby ramlight (Friar) |
on Oct 28, 2009 at 21:26 UTC ( [id://803808]=note: print w/replies, xml ) | Need Help?? |
I would think that getting the file size is faster than computing the hash for the file. So it seems to me that pruning the list of files for which hashes have to be computed by comparing file sizes would be faster, especially for large numbers of files.
I am curious to know why your second method is better for many files. Could you enlighten me please?
In Section
Seekers of Perl Wisdom
|
|