VSadov / NonBlocking

Implementation of a lock-free dictionary on .Net.
MIT License
488 stars 34 forks source link

Avoid boxing when value is a primitive that can be written atomically #10

Closed VSadov closed 4 years ago

VSadov commented 4 years ago

This change addresses the root cause for regressions described in #6.

Overall performance change will vary depending on scenario. It should significantly reduce allocations when TValue is a primitive that can be written atomically - int, long, etc..

Fixes: #6