Skip to content

Commit

Permalink
try to consume superwilds as fast as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Jan 24, 2024
1 parent 8cd786f commit cfc37d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commons/zenoh-keyexpr/src/key_expr/intersect/classical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ fn it_intersect<const STAR_DSL: bool>(mut it1: &[u8], mut it2: &[u8]) -> bool {
if advanced1.is_empty() {
return !it2.has_verbatim();
}
return (!unsafe { current2.has_direct_verbatim_non_empty() }
&& it_intersect::<STAR_DSL>(it1, advanced2))
|| it_intersect::<STAR_DSL>(advanced1, it2);
return it_intersect::<STAR_DSL>(advanced1, it2)
|| (!unsafe { current2.has_direct_verbatim_non_empty() }
&& it_intersect::<STAR_DSL>(it1, advanced2));
}
(_, b"**") => {
if advanced2.is_empty() {
Expand Down

0 comments on commit cfc37d4

Please sign in to comment.