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

AVL trees and sequence sets for interior delete optimizations. #4070

Merged
merged 4 commits into from Apr 18, 2023

Conversation

derekcollison
Copy link
Member

Signed-off-by: Derek Collison derek@nats.io

@derekcollison derekcollison requested a review from a team as a code owner April 18, 2023 03:16
derekcollison and others added 4 commits April 17, 2023 20:17
…ge delete maps for streams.

Signed-off-by: Derek Collison <derek@nats.io>
…enceSet.

No other optimizations yet.

Signed-off-by: Derek Collison <derek@nats.io>
* If we don't encode the `size`, it is lost during an encoding-decoding round-trip
* If we don't check capacity, we might reallocate needlessly instead of just growing the slice

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
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! :shipit:

@derekcollison derekcollison merged commit f3e0d6b into dev Apr 18, 2023
2 checks passed
@derekcollison derekcollison deleted the interior-deletes branch April 18, 2023 14:48
neilalexander added a commit that referenced this pull request Apr 18, 2023
This also uses the AVL tree from #4070 in place of the map that
currently tracks whether or not a sequence is present in the consumer
redeliveries.

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.

None yet

2 participants