You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CoreClr is able to use object header bits for locking in trivial cases. That makes typical use of lock fairly cheap. NativeAOT does not have that and lock(obj) is always a "fat lock".
This is likely the reason for regressions in ConcurrentDictionary benchmarks.
(re: #68891)
@tomcashman this is already in progress, sorry.
There is already an implementation at a stage where I know it is correct (as in "passing all tests"), but I do not know yet if the perf is acceptable.
Activity
tomcashman commentedon Nov 30, 2022
Where would be a starting point for this? I’d be interested in attempting an implementation to improve concurrency performance on our console ports.
VSadov commentedon Dec 1, 2022
@tomcashman this is already in progress, sorry.
There is already an implementation at a stage where I know it is correct (as in "passing all tests"), but I do not know yet if the perf is acceptable.
tomcashman commentedon Dec 1, 2022
No worries I’ll keep an eye out for the PR and we can test performance on consoles 😄