| Next | Program Repair Shop | 64 |
391 if ($filesz > 1024)
393 my (@name_list) = compare_by_first_block (1024,
394 @{$names_by_size{$filesz}});
448 else
453 @fc_LoL = compare_by_first_block ($filesz, @{$names_by_size{$filesz}});
I wonder at this separation
It seems to me that the two calls to compare_by_first_block are doing the same thing
What if we cut out the special case, doing something like this:
@LoL = compare_by_first_block (1024, @{$names_by_size{$filesz}});
if ($filesz > 1024) {
# Do the MD5 stuff and other comparisons
}
First question:
Will 1024 work with compare_by_first_block() even for short files?
| Next | ![]() |
Copyright © 2006 M. J. Dominus |