Small effeciency improvement

- Don't check for 'bad match' until it is known that the matches are the same.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-12-03 06:54:44 -08:00
parent c0abdc1fe8
commit ad4709cb6d

View File

@ -3432,9 +3432,9 @@ sub delete_duplicates {
# There are non-duplicate rules between this rule and the base rule
#
for my $key ( @keys1 ) {
last RULE if $bad_match{$key};
next RULE unless $key eq $keys2[$keynum++];
next RULE unless compare_values( $baseref->{$key}, $ruleref->{$key} );
last RULE if $bad_match{$key};
}
}
#