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
Kixiron opened this issue
Sep 9, 2022
· 4 comments
Labels
A-atomicArea: Atomics, barriers, and sync primitivesO-windowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.
Currently the windows Mutex implementation has this comment at the top talking about its locking approach (using SRWLock instead of CriticalSection) with the justification that SRWLock performs better on Windows 7 and Windows 8.
However, in the (seven) years since, Microsoft has ended their Windows 7 support in 2020, Windows 10 became the dominant windows version and Windows 11 was released in 2021.
In light of these massive shifts in the windows ecosystem, our mutex implementation's speed should probably be reevaluated on the more modern Windows 10 and 11 platforms
The text was updated successfully, but these errors were encountered:
SRWLOCK was still faster in win10 when I checked a while ago (using a modification of the parking_lot benchmarks (which themselves are a port of webkits mutex benchmarks). This was with InitializeCriticalSection rather than one of the initializers that configures a spin count, so that may impact things.
I think the comment is just a bit stale, but it doesn't hurt to re-evaluate.
That said, I would be interested in seeing how the futex-based locks perform compare to SRWLOCK, since windows does have futex operations and could plausibly use them.
A-atomicArea: Atomics, barriers, and sync primitivesO-windowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.
Currently the windows
Mutex
implementation has this comment at the top talking about its locking approach (usingSRWLock
instead ofCriticalSection
) with the justification thatSRWLock
performs better on Windows 7 and Windows 8.However, in the (seven) years since, Microsoft has ended their Windows 7 support in 2020, Windows 10 became the dominant windows version and Windows 11 was released in 2021.
In light of these massive shifts in the windows ecosystem, our mutex implementation's speed should probably be reevaluated on the more modern Windows 10 and 11 platforms
The text was updated successfully, but these errors were encountered: