Skip to content

Speed optimization for .NET 9.0+ through System.Threading.Lock #690

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 3 commits into
base: main
Choose a base branch
from

Conversation

MarkCiliaVincenti
Copy link

No description provided.

@bitfaster
Copy link
Owner

I have added a net9 build target with automated tests - you can merge master into your changes to get this.

Because System.Threading.Lock is only available on net9, you will need to make this change only for the net9 target using preprocessor directives, you can see a similar example for the lock statement in ConcurrentLfu here #697.

@MarkCiliaVincenti
Copy link
Author

Merged. The preprocessor directives are not needed because this is using a source-generated polyfill.

@coveralls
Copy link

Coverage Status

coverage: 99.062%. first build
when pulling ee89e00 on MarkCiliaVincenti:SystemThreadingLock
into 422ab25 on bitfaster:main.

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.

3 participants