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

Use read-write locks instead of mutexes in authentication handling #3210

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Apr 23, 2024

  • Use RwLock for KeyringProvider cache
  • Use RwLock for CredentialsCache

@zanieb zanieb added the performance Potential performance improvement label Apr 23, 2024
crates/uv-auth/src/keyring.rs Outdated Show resolved Hide resolved
@zanieb
Copy link
Member Author

zanieb commented Apr 23, 2024

cc @naosense

@zanieb zanieb requested a review from BurntSushi April 23, 2024 14:44
Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

crates/uv-auth/src/keyring.rs Outdated Show resolved Hide resolved
@zanieb zanieb merged commit a07adf7 into main Apr 24, 2024
40 checks passed
@zanieb zanieb deleted the zb/locks branch April 24, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Potential performance improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants