Skip to content

Faster locking through .NET 9's System.Threading.Lock #211

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

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

MarkCiliaVincenti
Copy link
Contributor

No description provided.

@WeihanLi
Copy link
Owner

Thanks for the PR, do we have any benchmark data about this change

@MarkCiliaVincenti
Copy link
Contributor Author

Thanks for the PR, do we have any benchmark data about this change

Basically System.Threading.Lock on .NET 9.0 is benchmarked to be around 25% faster. This PR brings this performance improvement into existing locks for .NET 9+ projects depending on this library.

https://steven-giesel.com/blogPost/4cf6d48a-ec9d-4c68-961c-31fd8d8c1340

Copy link
Owner

@WeihanLi WeihanLi left a comment

Choose a reason for hiding this comment

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

LGTM

@MarkCiliaVincenti
Copy link
Contributor Author

Not sure what the CI issue is but I was informed about something I should do to the library so I will release a new version. Don't merge yet.

@MarkCiliaVincenti
Copy link
Contributor Author

Updated.

@WeihanLi WeihanLi merged commit 8ab7c42 into WeihanLi:dev Aug 13, 2024
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