Skip to content

Locking optimizations #2372

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

MarkCiliaVincenti
Copy link

@MarkCiliaVincenti MarkCiliaVincenti commented May 3, 2025

Using a dictionary-based approach to locking with hardcoded strings is not optimal, hence switched to use AsyncNonKeyedLocker.

However in the case of GetOrCreatePermissionsDescriptionsAsync, it feels like two concurrent threads can exist as long as they have a different locale, hence the change to this method too.

Microsoft Reviewers: Open in CodeFlow

@MarkCiliaVincenti MarkCiliaVincenti requested a review from a team as a code owner May 3, 2025 08:59
@MarkCiliaVincenti
Copy link
Author

Set lock at locale level also on SamplesStore.

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.

1 participant