Skip to content

Commit

Permalink
make intersect try to consume superwilds ASAP
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Jan 23, 2024
1 parent be797e4 commit 4d41a17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/protocol/keyexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,16 +606,16 @@ _Bool _z_keyexpr_intersect_bothsuper(_z_str_se_t l, _z_str_se_t r, _z_ke_chunk_m
if (advanced1.start == NULL) {
return !_z_keyexpr_has_verbatim(it2.s);
}
return (current2.start[0] != _Z_VERBATIM &&
_z_keyexpr_intersect_bothsuper(it1.s, advanced2, chunk_intersector)) ||
_z_keyexpr_intersect_bothsuper(advanced1, it2.s, chunk_intersector);
return _z_keyexpr_intersect_bothsuper(advanced1, it2.s, chunk_intersector) ||
(current2.start[0] != _Z_VERBATIM &&
_z_keyexpr_intersect_bothsuper(it1.s, advanced2, chunk_intersector));
} else if (_z_keyexpr_is_superwild_chunk(current2)) {
if (advanced2.start == NULL) {
return !_z_keyexpr_has_verbatim(it1.s);
}
return (current1.start[0] != _Z_VERBATIM &&
_z_keyexpr_intersect_bothsuper(it2.s, advanced1, chunk_intersector)) ||
_z_keyexpr_intersect_bothsuper(advanced2, it1.s, chunk_intersector);
return _z_keyexpr_intersect_bothsuper(advanced2, it1.s, chunk_intersector) ||
(current1.start[0] != _Z_VERBATIM &&
_z_keyexpr_intersect_bothsuper(it2.s, advanced1, chunk_intersector));
} else if (chunk_intersector(current1, current2)) {
it1.s = advanced1;
it2.s = advanced2;
Expand Down
2 changes: 1 addition & 1 deletion zenohpico.pc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ prefix=/usr/local
Name: zenohpico
Description:
URL:
Version: 0.11.20240122dev
Version: 0.11.20240123dev
Cflags: -I${prefix}/include
Libs: -L${prefix}/lib -lzenohpico

0 comments on commit 4d41a17

Please sign in to comment.