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

Refactored the connections map from HashMap to DashMap #180

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

barshaul
Copy link

@barshaul barshaul commented Jul 31, 2024

This PR changes the connection map data structure to DashMap, which helps reduce write lock contention on the connection container. The write lock on the connection container now will only be used when both slots and connection maps are being replaced.

@barshaul barshaul force-pushed the change_hashamp branch 5 times, most recently from 60cdae5 to f9d2622 Compare July 31, 2024 16:29
@barshaul barshaul requested a review from eifrah-aws July 31, 2024 16:30
…ite lock contention on the connection container
redis/Cargo.toml Outdated Show resolved Hide resolved
redis/src/cluster_async/connections_container.rs Outdated Show resolved Hide resolved
redis/src/cluster_async/connections_container.rs Outdated Show resolved Hide resolved
@barshaul
Copy link
Author

barshaul commented Aug 5, 2024

@eifrah-aws ready

@eifrah-aws eifrah-aws self-requested a review August 5, 2024 15:03
@barshaul barshaul merged commit 374c7bb into amazon-contributing:main Aug 7, 2024
10 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