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

stree: Split Iter into IterFast and IterOrdered #6458

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

neilalexander
Copy link
Member

@neilalexander neilalexander commented Feb 5, 2025

Not all of the Iter() call-sites required ordering, and ordering would slow down the process quite a bit, so replace with two new IterFast() and IterOrdered() functions instead.

This should speed up populating the per-subject infos, multi-filter num pending and enforcing the per-subject limits.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner February 5, 2025 13:06
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 - one style question.

Signed-off-by: Neil Twigg <neil@nats.io>
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 53e1781 into main Feb 5, 2025
5 checks passed
@derekcollison derekcollison deleted the neil/streeiter branch February 5, 2025 14:43
neilalexander added a commit that referenced this pull request Feb 6, 2025
Includes the following:

- #6406
- #6412
- #6408
- #6416
- #6425
- #6424
- #6438
- #6439
- #6446
- #6447
- #6448
- #6449
- #6450
- #6451
- #6452
- #6453
- #6456
- #6458
- #6457
- #6459
- #6460
- #6461

Signed-off-by: Neil Twigg <neil@nats.io>
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