mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
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:
parent
c0abdc1fe8
commit
ad4709cb6d
@ -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};
|
||||
}
|
||||
}
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user