Skip to content

Optimise getAccAndResultFromCache by reducing allocations#5744

Merged
derekcollison merged 1 commit intomainfrom
neil/getacc
Aug 2, 2024
Merged

Optimise getAccAndResultFromCache by reducing allocations#5744
derekcollison merged 1 commit intomainfrom
neil/getacc

Conversation

@neilalexander
Copy link
Copy Markdown
Member

We'll still copy the string when asking the resolver, as we can't be sure whether a resolver will want to hold onto the string or not, but this should lead to improvements on the hot paths for routes and gateways when the cache doesn't contain the entries we want.

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

We'll still copy the string when asking the resolver, as we can't be
sure whether a resolver will want to hold onto the string or not, but
this should lead to improvements on the hot paths for routes and
gateways when the cache doesn't contain the entries we want.

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander requested a review from a team as a code owner August 2, 2024 12:46
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.

LGTM

@derekcollison derekcollison merged commit 28c7817 into main Aug 2, 2024
@derekcollison derekcollison deleted the neil/getacc branch August 2, 2024 18:40
neilalexander added a commit that referenced this pull request Aug 6, 2024
Includes the following:

- #5690
- #5725
- #5729
- #5734
- #5735
- #5736
- #5743
- #5744
- #5751
- #5755
- #5754
- #5732
- #5750
- #5756

The following were reverted before this PR:
- #5602

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