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/ …
-
-
Replying to @cmuratori
@cmuratori@handmade_hero never like, locking mutexes in a 1000 iteration for loop or anything1 reply 0 retweets 0 likes -
Replying to @TylerGlaiel
@TylerGlaiel@handmade_hero Well, the point is less whether you do or don't, and more that you _could_, except not with the CRT now :)1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@TylerGlaiel@handmade_hero An uncontended atomic increment/decrement is very close to free. You _could_ do 1000 in a loop.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@TylerGlaiel@handmade_hero If a lot are contended, sure, that goes up.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@TylerGlaiel@handmade_hero If that's what someone was thinking, and now they find that it inserts calls to an address verifier?1 reply 0 retweets 0 likes
@cmuratori @TylerGlaiel @handmade_hero That's just crazy!
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.