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

[IMPROVED] Delete blocks performance #4371

Merged
merged 3 commits into from Aug 7, 2023
Merged

[IMPROVED] Delete blocks performance #4371

merged 3 commits into from Aug 7, 2023

Conversation

derekcollison
Copy link
Member

Track deleted with single avl.SeqSet dmap for now vs old method for memory store.

For fileStore, we were trying to be too smart to save space at the expense of encoding time, so revert back to simple version that is much 100x faster.

Size of encoding may be a bit bigger then we wanted, but we want to prefer speed over size.

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

Size of encoding may be a bit bigger then we wanted, but still way better then old method and very fast.

Signed-off-by: Derek Collison <derek@nats.io>
…ng time for filestore.

Revert back to very simple but way faster method. Sometimes 100x faster and only ~8% size increase.

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison derekcollison requested a review from a team as a code owner August 5, 2023 20:37
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!

@derekcollison derekcollison merged commit 6ca7887 into dev Aug 7, 2023
2 checks passed
@derekcollison derekcollison deleted the delete-blocks branch August 7, 2023 16:18
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