NCronJob-Dev / NCronJob

A Job Scheduler sitting on top of IHostedService in dotnet.
https://docs.ncronjob.dev/
MIT License
158 stars 11 forks source link

Improved locking performance on .NET 9.0+ #94

Closed MarkCiliaVincenti closed 2 months ago

MarkCiliaVincenti commented 2 months ago

The new System.Threading.Lock offers greater performance, as independent benchmarks show (eg https://steven-giesel.com/blogPost/4cf6d48a-ec9d-4c68-961c-31fd8d8c1340)

linkdotnet commented 2 months ago

Same reasoning as https://github.com/bUnit-dev/bUnit/pull/1532

MarkCiliaVincenti commented 5 days ago

@linkdotnet a new version of Backport.System.Threading.Lock has come out that acts as a source generator and basically dropping the DLL as a dependency. If this new development makes you reconsider, I will amend this PR accordingly.