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

Move tokenizing of subject after early returns #4880

Merged
merged 1 commit into from Dec 13, 2023

Conversation

svenfoo
Copy link
Contributor

@svenfoo svenfoo commented Dec 13, 2023

We do not always need the tokenized subject here.

Signed-off-by: Sven Neumann sven.neumann@holoplot.com

We do not always need the tokenized subject here.

Signed-off-by: Sven Neumann <sven.neumann@holoplot.com>
@svenfoo svenfoo requested a review from a team as a code owner December 13, 2023 13:46
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@svenfoo
Copy link
Contributor Author

svenfoo commented Dec 13, 2023

The call to tokenizeSubjectIntoSlice() showed up in the profile. Moving it after the early returns avoids it in some cases. Probably not a huge win, but it's an easy one.

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 4d9419f into nats-io:main Dec 13, 2023
2 checks passed
@svenfoo svenfoo deleted the sven/filestore-num-pending branch December 13, 2023 21:17
wallyqs added a commit that referenced this pull request Dec 15, 2023
Includes:

- Check all filterSubjects of consumers when purging a stream (#4873)
- Move tokenizing of subject after early returns (#4880)
- Move helper subjectInfo() to the file where it's used (#4881)
- JSAPI internal routing and reporting and Source and Mirror setup (#4884)
- Do not load all blocks for NumPending when delivery is LastPerSubject. (#4885)
- Detect corrupt psim subjects during recovery of index.db (#4890)
- Add 'certs' option to TLS block for multi-certs support (#4889)
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.

None yet

3 participants