-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Faster locking through .NET 9's System.Threading.Lock #532
Faster locking through .NET 9's System.Threading.Lock #532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks. Will take a look when I'm back home.
Quick question, is that backwards compatible, since we target net7, net8 & net9 (actually I'm not sure if we even target net 7 anymore)?
Yes it is. It's a backport of the new System.Threading.Lock. The performance pre net9 will be unaffected but the performance on net9+ will be improved. |
Signed-off-by: Mark Cilia Vincenti <[email protected]>
Signed-off-by: Mark Cilia Vincenti <[email protected]>
Signed-off-by: Mark Cilia Vincenti <[email protected]>
Signed-off-by: Mark Cilia Vincenti <[email protected]>
Hey there! I've given this PR many thoughts and came to the conclusion that it's personally a too big possible security risk to depend on such a small package. |
You can. It has an MIT licence. But it goes without saying you won't get potential updates. |
That's fine |
I'll amend the PR tomorrow. |
Sounds good. We probably still take some time because both me and the other project lead are kinda mid burnout 😅 |
OK done @Lulalaby |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! I've reconsidered this pr and will go ahead with the dependency instead, makes it easier for us to automatically manage the updates + doesn't add a new license part.
Thank you!
Beautiful! But you should look at the original commit which conditionally doesn't add the dependency for net9 |
"conditionally doesn't add the dependency for net9" A bit confused about that part, do you mean the change from me with the langversion through Package.targets? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lulalaby Please disable renovate's auto updates for the newly added package as a security measure.
Thanks for the PR!
Code like this so that if compiled for net9 or later won't add the unneeded dependency
|
Oh I learned something new today! Haha thanks |
Co-Authored-By: Mark Cilia Vincenti <[email protected]>
No description provided.