This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Faster File::Compare
authorGisle Aas <aas@bergen.sn.no>
Wed, 5 Feb 1997 13:42:49 +0000 (14:42 +0100)
committerChip Salzenberg <chip@atlantic.net>
Mon, 10 Feb 1997 19:29:00 +0000 (07:29 +1200)
commit4d335c471cacb999603dc9b7dc6d3712051dbb6c
tree25b18fb7d338d5615e8a0bfadc4517a23e7e3873
parent778183f34c6f9006721e20db0af0805a4bcb0227
Faster File::Compare

The following optimization speeds up File::Compare with 30% on my
machine (in a test where most files in fact were different).

One could perhaps also optimize the situation where the two files are
the same thing.  Is it portable to compare (stat)[0,1] for the two
files and return 0 if these two numbers are equal?

p5p-msgid: <199702051342.OAA02753@bergen.sn.no>
lib/File/Compare.pm