Skip to content

Reduce allocations in sublist and subject transforms#7519

Merged
neilalexander merged 1 commit intomainfrom
neil/reduceallocs
Nov 6, 2025
Merged

Reduce allocations in sublist and subject transforms#7519
neilalexander merged 1 commit intomainfrom
neil/reduceallocs

Conversation

@neilalexander
Copy link
Copy Markdown
Member

In a few places we can use iterators rather than allocating new slices for better performance.

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

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander requested a review from a team as a code owner November 6, 2025 09:58
Copy link
Copy Markdown
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander neilalexander merged commit 5362b6e into main Nov 6, 2025
90 of 92 checks passed
@neilalexander neilalexander deleted the neil/reduceallocs branch November 6, 2025 10:25
Copy link
Copy Markdown
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.

We should split into tokens before acquiring the lock.

neilalexander added a commit that referenced this pull request Nov 7, 2025
Includes the following:

- #7518
- #7519
- #7520
- #7521
- #7522
- #7523
- #7517
- #7525
- #7526
- #7527
- #7524

Signed-off-by: Neil Twigg <neil@nats.io>
neilalexander added a commit that referenced this pull request Nov 7, 2025
Includes the following:

- #7518
- #7519
- #7520
- #7521
- #7522
- #7523
- #7517
- #7525
- #7526
- #7527
- #7524

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.

3 participants