So, whenever someone asks on @handmade_hero why I don't use C++'s atomics, I can just cut-and-paste this link:https://stoyannk.wordpress.com/2016/04/30/msvc-mutex-is-slower-than-you-might-expect/ …
@cmuratori @TylerGlaiel @handmade_hero An uncontended atomic increment/decrement is very close to free. You _could_ do 1000 in a loop.
-
-
@cmuratori@TylerGlaiel@handmade_hero If a lot are contended, sure, that goes up. -
@cmuratori@TylerGlaiel@handmade_hero If that's what someone was thinking, and now they find that it inserts calls to an address verifier? - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.