Skip to content

Faster locking on .NET 9.0+ using System.Threading.Lock #12

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

Conversation

MarkCiliaVincenti
Copy link

No description provided.

@alex-jitbit
Copy link
Member

Thanks for contributing! Have you run the benchmarks before/after?

@MarkCiliaVincenti
Copy link
Author

Hi, only on https://github.com/MarkCiliaVincenti/Backport.System.Threading.Lock/tree/master/Backport.System.Threading.Lock.Benchmarks

If you test your current benchmarks you should see no difference, but if you change your target framework to net9 and test both versions you should notice a minor improvement. But it's mostly theoretical since it's on EvictExpired.

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