Skip to content

Conversation

@MarkCiliaVincenti
Copy link

Made use of System.Threading.Lock everywhere.

@MartyIX
Copy link

MartyIX commented Aug 30, 2024

I'm curious: what is the main benefit of this?

@MarkCiliaVincenti
Copy link
Author

I'm curious: what is the main benefit of this?

Better locking performance per se. Microsoft created this class for use, and it makes sense that Microsoft libraries use it where it's sensible to use it.

@iSazonov
Copy link
Collaborator

iSazonov commented Sep 2, 2024

The remote API is frozen and should not be changed. Moreover, it is unlikely that you can get a performance increase associated with locking there.
I think the only API where we could benefit is ConsoleHost.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Review - Needed The PR is being reviewed label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants