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

swarm: improve dial worker performance for common case #2844

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Jun 20, 2024

This makes the common case O(1) compared to O(N) before. Updating an element is a separate op and we check the element from the back of the slice as most inserts are sorted.

@sukunrt sukunrt requested a review from MarcoPolo June 20, 2024 16:13
@MarcoPolo MarcoPolo merged commit cf9ddb7 into master Jun 25, 2024
11 checks passed
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