Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NumInterest to optimise searching for number of sublist entries #5918

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

neilalexander
Copy link
Member

There are some cases where we care about the number of subscriptions on the sublist but don't need the SublistResults. We can save quite a few allocations on these paths by reusing the match-any logic from HasInterest to count the number of subs.

Signed-off-by: Neil Twigg [email protected]

@neilalexander neilalexander marked this pull request as ready for review September 23, 2024 16:11
@neilalexander neilalexander requested a review from a team as a code owner September 23, 2024 16:11
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekcollison derekcollison merged commit 7403d1f into main Sep 23, 2024
5 checks passed
@derekcollison derekcollison deleted the neil/numinterest branch September 23, 2024 18:17
neilalexander added a commit that referenced this pull request Oct 10, 2024
Includes the following:

- #5918
- #5982
- #5983 (although only the 1.22.8 upgrade, since 1.21.x is no longer
receiving updates)

Signed-off-by: Neil Twigg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants